Thanks Massimo. In this case that is exactly what I want.

sexta-feira, 10 de Maio de 2019 às 02:59:24 UTC+1, Massimo Di Pierro 
escreveu:
>
>
> 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, jcrm...@gmail.com <javascript:> 
> 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, jcrm...@gmail.com 
>> 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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/60cc1e52-3217-4de9-8dd9-6b8021dcf8ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to