From 93d116c9e9410f50bc9735f2372619a5c9dfa387 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 5 Feb 2010 16:34:02 +0000 Subject: [PATCH] retain timezone information when building a DateTime object from an epoch timestamp git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15454 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm index 7d7550f186..31db0f9b96 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm @@ -776,7 +776,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"; -- 2.11.0