Mind os.eviron is not thread safe. You are changing not your one app, but for all your installed web2py apps.
On Tuesday, 7 May 2019 11:06:21 UTC-7, [email protected] wrote: > > 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/75b659c3-2c6b-44ad-beed-197af9d9cd85%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

