Code

Display 'today' in the account user's timezone, thanks David Wolever
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 29 Jan 2010 05:52:35 +0000 (05:52 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 29 Jan 2010 05:52:35 +0000 (05:52 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4435 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/templating.py

index 4a72e3fc7c3336ec18a759dcfd43722f1710f645..f0dc825f5d88de8244a06ba362a9a20873ad97a2 100644 (file)
@@ -21,6 +21,8 @@ Fixes:
   Anonymous again
 - Add check for "Web Access" permission in all web templating permission
   checks
+- Fix typo in upgrading documentation, thanks Christian Glass
+- Display 'today' in the account user's timezone, thanks David Wolever
 
 
 2009-12-21 1.4.11 (r4413)
index 226851de94308db566d0413a7d2e2cbc7e5e56b4..047dfedab158c7b003a0fa439439bab7fa3025c0 100644 (file)
@@ -2827,7 +2827,9 @@ class TemplatingUtils:
 
         html will simply be a table.
         """
-        date_str  = request.form.getfirst("date", ".")
+        tz = request.client.db.getUserTimezone())
+        current_date = date.Date(".").local(tz)
+        date_str  = request.form.getfirst("date", current_date)
         display   = request.form.getfirst("display", date_str)
         template  = request.form.getfirst("@template", "calendar")
         form      = request.form.getfirst("form")