Message3994
The portion of the popup calendar component which is highlighted 'today' does not take into
account user's timezones.
Here's a patch that fixes it:
diff -r 6712fd2127f7 roundup/cgi/templating.py
--- a/roundup/cgi/templating.py Wed Dec 16 11:54:04 2009 -0500
+++ b/roundup/cgi/templating.py Tue Jan 12 00:29:31 2010 -0500
@@ -2809,7 +2809,8 @@
html will simply be a table.
"""
- date_str = request.form.getfirst("date", ".")
+ current_date = date.Date(".").local(request.client.db.getUserTimezone())
+ 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") |
|
Date |
User |
Action |
Args |
2010-01-12 05:32:53 | wolever | set | messageid: <1263274373.15.0.111556450149.issue2550629@psf.upfronthosting.co.za> |
2010-01-12 05:32:53 | wolever | set | recipients:
+ wolever |
2010-01-12 05:32:52 | wolever | link | issue2550629 messages |
2010-01-12 05:32:51 | wolever | create | |
|