fix off=by-one in closed days
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Sep 2006 04:14:34 +0000 (04:14 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Sep 2006 04:14:34 +0000 (04:14 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6076 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 7d6ed86..b0dbb87 100644 (file)
@@ -573,7 +573,7 @@ sub generate_fines {
                                
                                my $billing_ts = DateTime->from_epoch( epoch => $last_fine + $fine_interval * $bill );
 
                                
                                my $billing_ts = DateTime->from_epoch( epoch => $last_fine + $fine_interval * $bill );
 
-                               my $dow = $billing_ts->dow;
+                               my $dow = $billing_ts->day_of_week_0();
                                my $dow_open = "dow_${dow}_open";
                                my $dow_close = "dow_${dow}_close";
 
                                my $dow_open = "dow_${dow}_open";
                                my $dow_close = "dow_${dow}_close";