From 5f5fbed30812124e5865c4aaf20c927f7d2d01bd Mon Sep 17 00:00:00 2001 From: "C.J. Adams-Collier" Date: Wed, 3 Sep 2014 15:24:58 -0700 Subject: FS RT #884 code review recommendations per mwells --- httemplate/graph/signupdate.cgi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'httemplate/graph') diff --git a/httemplate/graph/signupdate.cgi b/httemplate/graph/signupdate.cgi index 43deddc8d..23e459664 100644 --- a/httemplate/graph/signupdate.cgi +++ b/httemplate/graph/signupdate.cgi @@ -36,13 +36,11 @@ $where{'usernum'} = $usernum if $usernum; my $sdate = DateTime->new( year => $cgi->param('start_year'), month => $cgi->param('start_month'), - time_zone => 'America/Los_Angeles', )->epoch(); my $edate = DateTime->new( year => $cgi->param('end_year'), - month => $cgi->param('end_month'), - time_zone => 'America/Los_Angeles', + month => ($cgi->param('end_month') % 12 + 1) # first day of the next month )->epoch(); my $where .= " AND signupdate >= $sdate ". -- cgit v1.2.1