Check for `to_time`
This commit is contained in:
parent
f7edcceb70
commit
72a56d9eb7
|
@ -348,7 +348,7 @@ module Jekyll
|
|||
private
|
||||
def time(input)
|
||||
date = Liquid::Utils.to_date(input)
|
||||
unless date.respond_to?(:strftime)
|
||||
unless date.respond_to?(:to_time)
|
||||
raise Errors::InvalidDateError,
|
||||
"Invalid Date: '#{input.inspect}' is not a valid datetime."
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue