Filters#time helper: Duplicate time before calling #localtime. (#5996)

Merge pull request 5996
This commit is contained in:
Parker Moore 2017-03-31 14:44:46 -04:00 committed by jekyllbot
parent 725c756ae1
commit faf5be46a5
1 changed files with 1 additions and 1 deletions

View File

@ -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