I have the following 2.5 issues with  user time zone
1. I installed the timezone plugin and followed the instructions up to that 
line: 
....As soon as you call this page, session.plugin_timezone_tz is filled 
automatically with the detected timezone

which comes just after the: 

from plugin_timezone import fast_tz_detector
def detect_timezone():
    tz = fast_tz_detector()
    return dict(tz=tz)

The problem is that I do not call this page. I don't even know which page 
is talking about.
My application is a simple table shown in an SQLFORM.smartgrid() that 
invoked from a controller function like this(simplified): 

def show_list():
grid=SQLFORM.smartgrid(db.visit_list)
return locals()

Needless to say that the user_timezone is set to UTC and this bring me to 
the next issue:

2. If I manually set the  user_timezone='Europe/Berlin' then I do get the 
right time zone in an Edit/new forms that are started from the grid
clicking on the visit_list link or Add new line button. but a datetime 
field still shows UTC datetime in the grid itself, probably due to the 
following line:

db.visit_list.started.represent=lambda t,r: t.strftime("%m-%d %H:%M") if t 
else ''

   2.1 as a sub issue this represent line only works in the grid. In the 
Edit/new forms the datetime widget takes over and add a full datetime 
format.Could this be 
 controlled? Fx. I would like to show only "%m-%d %H:%M"

Thanks for help
     


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to