Forum OpenACS Development: Re: Res: Re: Res: TimeZone Setup

Collapse
Posted by Cesareo Garci­a Rodicio on
Hi !

Please look at this:

Code:

set hora_server [ns_fmttime [ns_time] "%Y-%m-%d %H:%M:%S"]
set hora_utc [lc_time_local_to_utc $hora_server ]
set hora_local [lc_time_system_to_conn $hora_server ]

Result:

Hora Servidor : 2006-08-31 15:22:13 (It's hora_server)
Hora UTC: 2006-08-31 20:22:13 (It's hora_utc)
Mi hora: 2006-08-31 16:22:13 (It's hora_local)

So, my conclusions:

Server Time (GMT -6) seems to be OK
UTC Time FAILED: It must be 21:22 (15:22 + 6, not 5)
User Local time (GMT -5)

As I said before, my server time is GMT -6 but I had to put in OpenACS setup SystemTimezone America/Denver that appears with GMT -7

So, it seems to be a bug in OpenACS?