From 5200eacd36a896d4f389a16b717e518a335b0c9f Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 13 Oct 2010 12:50:20 -0700 Subject: [PATCH] [#4604] Store caching timestamps in the database as UTC --- app/models/rate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/rate.rb b/app/models/rate.rb index b4e0870..16fa7a3 100644 --- a/app/models/rate.rb +++ b/app/models/rate.rb @@ -81,7 +81,7 @@ class Rate < ActiveRecord::Base end end end - store_cache_timestamp('last_caching_run', Time.now.to_s) + store_cache_timestamp('last_caching_run', Time.now.utc.to_s) end def self.update_all_time_entries_to_refresh_cache(options={}) @@ -94,7 +94,7 @@ class Rate < ActiveRecord::Base end end end - store_cache_timestamp('last_cache_clearing_run', Time.now.to_s) + store_cache_timestamp('last_cache_clearing_run', Time.now.utc.to_s) end private