I think it not working and have been removed from trunk...
On Wed, Jun 28, 2017 at 6:14 AM, Dave S wrote:
>
>
> 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
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
Thank you
Very helpfull
--
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
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
just an idea, i think should define the field as datetime and detect user
timezone to represent it, e.g. pytz
ref:
https://groups.google.com/forum/#!topic/web2py/J5pYfUqrCZY
https://github.com/niphlod/w2p_timezone_plugin
best regards,
stifan
--
Resources:
- http://web2py.com
-
5 matches
Mail list logo