You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to py4web
Even if python support timezone aware datetimes, the database backends do not. I think the best approach is to keep all dates server side as UTC and do any conversion to/from localtime in the browser (using <input type="datetime-local" value="[[=dt]" readonly>) The browser knows how to do this conversion. The server does not need to know the user timezone which may change (unless you really need to). py4web's Form should already handle this correctly. If not please provide an example of when it is broken.
Mamisoa Andriantafika
unread,
Apr 15, 2021, 8:04:40 AM4/15/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to py4web
Thanks for your answer.
For doing calculations server side eg for a calendar app, it is sometime useful to have datetime that are tz aware. It avoids to make some transformations on both sides.