[open-ils-commits] r15454 - branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Feb 5 11:34:05 EST 2010


Author: miker
Date: 2010-02-05 11:34:02 -0500 (Fri, 05 Feb 2010)
New Revision: 15454

Modified:
   branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
Log:
retain timezone information when building a DateTime object from an epoch timestamp

Modified: branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
===================================================================
--- branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm	2010-02-05 16:33:26 UTC (rev 15453)
+++ branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm	2010-02-05 16:34:02 UTC (rev 15454)
@@ -776,7 +776,8 @@
 					last;
 				}
 				
-				my $billing_ts = DateTime->from_epoch( epoch => $last_fine + $fine_interval * $bill );
+				# XXX Use org time zone (or default to 'local') once we have the ou setting built for that
+				my $billing_ts = DateTime->from_epoch( epoch => $last_fine + $fine_interval * $bill, time_zone => 'local' );
 
 				my $dow = $billing_ts->day_of_week_0();
 				my $dow_open = "dow_${dow}_open";



More information about the open-ils-commits mailing list