Filters#time helper: Duplicate time before calling #localtime. (#5996)
Merge pull request 5996
This commit is contained in:
parent
725c756ae1
commit
faf5be46a5
|
@ -352,7 +352,7 @@ module Jekyll
|
||||||
raise Errors::InvalidDateError,
|
raise Errors::InvalidDateError,
|
||||||
"Invalid Date: '#{input.inspect}' is not a valid datetime."
|
"Invalid Date: '#{input.inspect}' is not a valid datetime."
|
||||||
end
|
end
|
||||||
date.to_time.localtime
|
date.to_time.dup.localtime
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue