On Tuesday, June 27, 2017 at 4:08:25 AM UTC-7, Leonel Câmara wrote:
>
> Always store everything in UTC, seriously just have request.now = 
> request.utcnow as the first line in all your applications. 
>
> It's very easy to get a user's UTC offset using javascript:
>
> (new Date()).getTimezoneOffset()/60
>
> Then you can store it in session or something like that and use it to 
> adapt queries and the way you display stuff.
>


Also see 
<URL:https://groups.google.com/d/msg/web2py/Fi9T3nmT-ek/aCElqdLiBwAJ> ... 
Niphlod has a github link that is relevant.

/dps
 

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to