You are not logged in.

#1 2011-06-06 21:15:30

michalkx
Member
Registered: 2008-02-04
Posts: 5

Nginx timezone problem

Hi,

I have problem with nginx: it shows wrong time of file's modification. My timezone is set to Europe/Warsaw (which is UTC+2 now) and HARDWARECLOCK="UTC" in rc.conf. But nginx shows the UTC time instead of UTC+2. I tried both exporting $TZ environmental variable and env=UTC+2; option in nginx.conf.

date:     pon, 6 cze 2011, 23:14:44 CEST
date -u: pon, 6 cze 2011, 21:15:07 UTC

Waiting for your suggestions.
Thanks,
Mike

Offline

#2 2011-06-07 10:12:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Nginx timezone problem

https://bbs.archlinux.org/viewtopic.php?id=120395 mentions that setting the timezone fails during boot - maybe it's related.

Offline

#3 2011-06-07 12:04:30

michalkx
Member
Registered: 2008-02-04
Posts: 5

Re: Nginx timezone problem

I think that system timezone is being set correctly during boot because 'date' shows good time. Any ideas?

Offline

Board footer

Powered by FluxBB