From 0019667ce6855ebf00f19ef3f38c9154659ba38c Mon Sep 17 00:00:00 2001 From: geemus Date: Wed, 6 Jul 2011 12:44:01 -0500 Subject: [PATCH] [core] fix to_date_header to use self.utc instead of self.class.now.utc closes #396 --- lib/fog/core/time.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fog/core/time.rb b/lib/fog/core/time.rb index d73452d9b..874de0eff 100644 --- a/lib/fog/core/time.rb +++ b/lib/fog/core/time.rb @@ -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