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:
parent
17866d025c
commit
0019667ce6
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue