lib/nanoc/helpers/blogging.rb in nanoc-4.3.5 vs lib/nanoc/helpers/blogging.rb in nanoc-4.3.6
- old
+ new
@@ -242,10 +242,10 @@
def attribute_to_time(arg)
case arg
when DateTime
arg.to_time
when Date
- Time.local(arg.year, arg.month, arg.day)
+ Time.utc(arg.year, arg.month, arg.day)
when String
Time.parse(arg)
else
arg
end