From: richard Date: Fri, 29 Jan 2010 05:52:35 +0000 (+0000) Subject: Display 'today' in the account user's timezone, thanks David Wolever X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1f6ebe625d822b4d3d3811f5096ea25c9724c5d9;p=roundup.git Display 'today' in the account user's timezone, thanks David Wolever git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4435 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 4a72e3f..f0dc825 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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) diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 226851d..047dfed 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -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")