[Rt-commit] r18853 - rt/3.999/branches/datetime/lib/RT/Model
sartak at bestpractical.com
sartak at bestpractical.com
Thu Mar 19 13:01:40 EDT 2009
Author: sartak
Date: Thu Mar 19 13:01:39 2009
New Revision: 18853
Modified:
rt/3.999/branches/datetime/lib/RT/Model/TicketCollection.pm
Log:
Database time zone is UTC not server
Modified: rt/3.999/branches/datetime/lib/RT/Model/TicketCollection.pm
==============================================================================
--- rt/3.999/branches/datetime/lib/RT/Model/TicketCollection.pm (original)
+++ rt/3.999/branches/datetime/lib/RT/Model/TicketCollection.pm Thu Mar 19 13:01:39 2009
@@ -533,7 +533,7 @@
# particular single day. in the database, we need to check for >
# and < the edges of that day.
- $date->truncate(to => 'day')->set_time_zone('server');
+ $date->truncate(to => 'day')->set_time_zone('UTC');
my $daystart = $date->iso;
my $dayend = $date->add(days => 1)->iso;
@@ -632,7 +632,7 @@
# particular single day. in the database, we need to check for >
# and < the edges of that day.
- $date->truncate(to => 'day')->set_time_zone('server');
+ $date->truncate(to => 'day')->set_time_zone('UTC');
my $daystart = $date->iso;
my $dayend = $date->add(days => 1)->iso;
More information about the Rt-commit
mailing list