Re: [web2py] Re: datetime or timestamp ?

2017-06-28 Thread Richard Vézina
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

[web2py] Re: datetime or timestamp ?

2017-06-28 Thread Dave S
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

Re: [web2py] Re: datetime or timestamp ?

2017-06-28 Thread António Ramos
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

[web2py] Re: datetime or timestamp ?

2017-06-27 Thread Leonel Câmara
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

[web2py] Re: datetime or timestamp ?

2017-06-27 Thread 黄祥
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 -