From 28ca56c93daa7bd139ff69e3ddbc094f31a45aa9 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Thu, 12 Apr 2007 00:45:35 +0000 Subject: [PATCH] Fixed 'off by one' month bug in month select boxes generated by print_date_selector when users time zone set to GMT-13. Author: Matt Clarkson Committer: Matt --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 78e32e1dea8..40ece0f7b40 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4283,7 +4283,7 @@ function print_date_selector($day, $month, $year, $currenttime=0, $return=false) $days[$i] = $i; } for ($i=1; $i<=12; $i++) { - $months[$i] = userdate(gmmktime(12,0,0,$i,1,2000), "%B"); + $months[$i] = userdate(gmmktime(12,0,0,$i,15,2000), "%B"); } for ($i=1970; $i<=2020; $i++) { $years[$i] = $i;