1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[core] fix to_date_header to use self.utc instead of self.class.now.utc

closes #396
This commit is contained in:
geemus 2011-07-06 12:44:01 -05:00
parent 17866d025c
commit 0019667ce6

View file

@ -19,8 +19,7 @@ module Fog
end
def to_date_header
now = self.class.now.utc
now.strftime("#{DAYS[now.wday]}, %d #{MONTHS[now.month - 1]} %Y %H:%M:%S +0000")
self.utc.strftime("#{DAYS[self.utc.wday]}, %d #{MONTHS[self.utc.month - 1]} %Y %H:%M:%S +0000")
end
end