retain timezone information when building a DateTime object from an epoch timestamp
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Feb 2010 16:33:26 +0000 (16:33 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Feb 2010 16:33:26 +0000 (16:33 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15453 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm

index 9b3590c..a90b27c 100644 (file)
@@ -817,7 +817,8 @@ sub generate_fines {
                                        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";