Addressing the different timestamps for created_on because of different time zones
17 views
Skip to first unread message
mostwanted
unread,
Jun 29, 2019, 11:21:17 PM6/29/19
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 web2py-users
Hi guys, my application is being hosted on pythonanywhere, when i retrieve user inputs and their created_on date & timestamps to display them the timestamps come different from the time of my location. We are 2hrs ahead, is there a way i can have these timestamps similar to the that of my time zone??
Regards
Mostwanted
Dave S
unread,
Jun 30, 2019, 3:38:48 AM6/30/19
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 web2py-users
Take a look at the python datetime module, and functions such as datetime.astimezone(tz).