0

I install all dependencies like suggest in tryton.org page, and then install tryton client and build trytond(server).

But when I try to initialise database

C:\Python27/python.exe C:\Python27/Scripts/trytond -c C:\Python27/Scripts/trytond.conf -d --all

I get error of the title, is like is not reconizing the UTC time

I change time to UTC like suggest this answer, restart my PC and now my timezone is in UTC.

https://superuser.com/questions/482860/does-windows-8-support-utc-as-bios-time

But is continue the error

Any idea or file that should be modify to correct this error?

trytond.conf

[jsonrpc] listen == localhost:8000 hostname == localhost

[database] uri == postgresql://tryton:tryton@localhost:5432/

[session] timeout == 600 super_pwd == tUYUV3PebcivM

[report] unoconv == "C:\Program Files (x86)\LibreOffice 5\program\python.exe" unoconv

EDIT

print time.strftime("%Z%z")
Hora estándar oeste, SudaméricaHora estándar oeste, Sudamérica

print time.gmtime()
time.struct_time(tm_year=2016, tm_mon=1, tm_mday=9, tm_hour=20, tm_min=15, tm_sec=33, tm_wday=5, tm_yday=9, tm_isdst=0)

print time.localtime()
time.struct_time(tm_year=2016, tm_mon=1, tm_mday=9, tm_hour=16, tm_min=15, tm_sec=33, tm_wday=5, tm_yday=9, tm_isdst=0)
Community
  • 1
  • 1
gvd
  • 1,482
  • 6
  • 32
  • 58
  • `trytond`'s timezone might be different from your local timezone. Check whether there is a corresponding setting (e.g., like `TIME_ZONE` setting in django) – jfs Jan 08 '16 at 10:39
  • No, There isn't. The documentation says that use the system time... – gvd Jan 09 '16 at 06:58
  • The question you link does not say how to set Windows local timezone (BIOS issue is unrelated). What is `time.strftime("%Z%z")`? Are you sure your system timezone is UTC? `time.gmtime() == time.localtime()`? – jfs Jan 09 '16 at 07:03
  • time.gmtime() == time.localtime() is false.... See the execution of code that you suggest me... How can I correct that? – gvd Jan 09 '16 at 16:12
  • Sorry I forgot add the link see here http://imgur.com/c3QajaA – gvd Jan 09 '16 at 16:41
  • [edit] your question and include the info as text – jfs Jan 09 '16 at 18:20
  • Now I add the output as text to my question – gvd Jan 09 '16 at 22:20
  • The output says that your local timezone is not UTC. Set your system timezone to UTC. – jfs Jan 10 '16 at 07:04
  • But I confused but when I go to date and time settings I saw that my time UTC. See this capture to my date and time settings https://i.stack.imgur.com/mX0Kj.png – gvd Jan 10 '16 at 16:53
  • the screenshot shows that your timezone is not UTC (the UTC offset is not zero: `4 != 0`). – jfs Jan 10 '16 at 17:00

0 Answers0