From fff821d6e554010ceccf8ed7df6b872b64a4fdea Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Fri, 7 Sep 2007 14:20:55 +0000 Subject: [PATCH] fix monthStartEnd function --- lib/WebGUI/Session/DateTime.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Session/DateTime.pm b/lib/WebGUI/Session/DateTime.pm index 5b2e24f27..47c881346 100644 --- a/lib/WebGUI/Session/DateTime.pm +++ b/lib/WebGUI/Session/DateTime.pm @@ -782,7 +782,7 @@ sub monthStartEnd { my $epoch = shift || time(); my $time_zone = $self->getTimeZone(); my $dt = DateTime->from_epoch(epoch=>$epoch, time_zone=>$time_zone); - my $end = DateTime->last_day_of_month(year=>$dt->year, month=>$dt->month); + my $end = DateTime->last_day_of_month(year=>$dt->year, month=>$dt->month, time_zone=>$time_zone); $dt->set_day(1); $dt->set_hour(0); $dt->set_minute(0);