I was able to solve it by adding
time.tzset()
after the 
os.environ["TZ"] = "Europe/Lisbon"
in the wsgi configuration file (it's accessible in the Web tab).

terça-feira, 7 de Maio de 2019 às 14:21:07 UTC+1, [email protected] 
escreveu:
>
> Hello,
>
> I was able to change the time zone of the consoles to UTC+1 in 
> PythonAnywhere, but the web2py apps are still in UTC.
>
> Does anyone know how I can change make the web2py apps comply?
>
> I was told to add this
> os.environ["TZ"] = "Europe/Lisbon"
> to the start of wsgi adapter (located at /var/www), but that didn't work.
>
> Thanks,
>
> JM
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e11a9937-68a4-4f7e-b263-314752bbda28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to