Commit c6ead0880831f68cd5163bc963886a5f45db1aa8

Authored by Luke Baker
1 parent 613a885d

update time spans

Showing 1 changed file with 8 additions and 8 deletions   Show diff stats
lib/tasks/prune_db.rake
@@ -29,14 +29,14 @@ namespace :prune_db do @@ -29,14 +29,14 @@ namespace :prune_db do
29 desc "Converts all dates from PT to UTC" 29 desc "Converts all dates from PT to UTC"
30 task :convert_dates_to_utc => :environment do 30 task :convert_dates_to_utc => :environment do
31 time_spans = [ 31 time_spans = [
32 - { :gt => "2009-11-01 02:00:00", :lt => "2010-03-14 02:00:00", :h => 8},  
33 - { :gt => "2010-03-14 02:00:00", :lt => "2010-11-07 01:00:00", :h => 7},  
34 - { :gt => "2010-11-07 01:00:00", :lt => "2010-11-07 02:00:00", :h => nil},  
35 - { :gt => "2010-11-07 02:00:00", :lt => "2011-03-13 02:00:00", :h => 8},  
36 - { :gt => "2011-03-13 02:00:00", :lt => "2011-11-06 01:00:00", :h => 7},  
37 - { :gt => "2011-11-06 01:00:00", :lt => "2011-11-06 02:00:00", :h => nil},  
38 - { :gt => "2011-11-06 02:00:00", :lt => "2012-03-11 02:00:00", :h => 8},  
39 - { :gt => "2012-03-11 02:00:00", :lt => "2012-11-04 01:00:00", :h => 7} 32 + { :gt => "2009-11-01 01:59:59", :lt => "2010-03-14 02:00:00", :h => 8},
  33 + { :gt => "2010-03-14 01:59:59", :lt => "2010-11-07 01:00:00", :h => 7},
  34 + { :gt => "2010-11-07 00:59:59", :lt => "2010-11-07 02:00:00", :h => nil},
  35 + { :gt => "2010-11-07 01:59:59", :lt => "2011-03-13 02:00:00", :h => 8},
  36 + { :gt => "2011-03-13 01:59:59", :lt => "2011-11-06 01:00:00", :h => 7},
  37 + { :gt => "2011-11-06 00:59:59", :lt => "2011-11-06 02:00:00", :h => nil},
  38 + { :gt => "2011-11-06 01:59:59", :lt => "2012-03-11 02:00:00", :h => 8},
  39 + { :gt => "2012-03-11 01:59:59", :lt => "2012-11-04 01:00:00", :h => 7}
40 ] 40 ]
41 # UTC because Rails will be thinking DB is in UTC when we run this 41 # UTC because Rails will be thinking DB is in UTC when we run this
42 time_spans.map! do |t| 42 time_spans.map! do |t|