Skip to content

Commit fc3a3d5

Browse files
author
Richard Jones
committed
Display 'today' in the account user's timezone, thanks David Wolever
1 parent 7fee7be commit fc3a3d5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Fixes:
2121
Anonymous again
2222
- Add check for "Web Access" permission in all web templating permission
2323
checks
24+
- Fix typo in upgrading documentation, thanks Christian Glass
25+
- Display 'today' in the account user's timezone, thanks David Wolever
2426

2527

2628
2009-12-21 1.4.11 (r4413)

roundup/cgi/templating.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,9 @@ def html_calendar(self, request):
28272827
28282828
html will simply be a table.
28292829
"""
2830-
date_str = request.form.getfirst("date", ".")
2830+
tz = request.client.db.getUserTimezone())
2831+
current_date = date.Date(".").local(tz)
2832+
date_str = request.form.getfirst("date", current_date)
28312833
display = request.form.getfirst("display", date_str)
28322834
template = request.form.getfirst("@template", "calendar")
28332835
form = request.form.getfirst("form")

0 commit comments

Comments
 (0)