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,
|
||||
"Invalid Date: '#{input.inspect}' is not a valid datetime."
|
||||
end
|
||||
date.to_time.localtime
|
||||
date.to_time.dup.localtime
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in New Issue