here's the output...<br>07:58 1 18000<br>date: Thu Jun 19 07:58:26 EDT 2008<br>date -u: Thu Jun 19 11:58:27 UTC 2008<br><br>-Jake<br><br><br><div class="gmail_quote">On Wed, Jun 18, 2008 at 4:54 PM, Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Wed, Jun 18, 2008 at 03:51:37PM -0400, J Davis wrote:<br>
<br>
> I think you are on to something.<br>
><br>
> date: Wed Jun 18 15:23:03 EDT 2008<br>
> date -u: Wed Jun 18 19:23:05 UTC 2008<br>
> access.log: 18/Jun/2008:14:23:34 -0500<br>
><br>
> I made sure that my tzdata package was up to date and that /etc/localtime<br>
> points to the correct zone at /usr/share/zoneinfo/America/New_York. I then<br>
> gave nginx the HUP signal (not sure if that was necessary).<br>
><br>
> but the time stamps are still 1 hour behind.<br>
<br>
</div>Could you build the program below and run it together with date and date -u ?<br>
<br>
----------<br>
#ifndef _GNU_SOURCE<br>
#define _GNU_SOURCE<br>
#endif<br>
<br>
#include <time.h><br>
#include <stdio.h><br>
<br>
int<br>
main()<br>
{<br>
time_t s;<br>
struct tm t;<br>
<br>
tzset();<br>
<br>
s = time(NULL);<br>
<br>
(void) localtime_r(&s, &t);<br>
<br>
printf("%02d:%02d %d %d\n", t.tm_hour, t.tm_min, t.tm_isdst, timezone);<br>
<br>
return 0;<br>
}<br>
----------<br>
<br>
Also could you send the output of nginx's ./configure ?<br>
<div class="Ih2E3d"><br>
> -Jake<br>
><br>
><br>
> On Wed, Jun 18, 2008 at 2:52 PM, Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>> wrote:<br>
><br>
> > On Wed, Jun 18, 2008 at 02:10:37PM -0400, J Davis wrote:<br>
> ><br>
> > > I'm trying to figure out why my nginx access log timestamps are an hour<br>
> > > behind the actual time.<br>
> > > I've confirmed that the "date" and "hwclock" commands both return the<br>
> > proper<br>
> > > values on the system and that the timezone is correct but the timestamps<br>
> > in<br>
> > > the nginx logs are all an hour off.<br>
> > > I realize this may not be an Nginx problem but I'm not sure how else to<br>
> > > narrow down the possibilities.<br>
> > ><br>
> > > Any insights are greatly appreciated.<br>
> > ><br>
> > > RedHat el5 - 2.6.18-8.el5<br>
> > > nginx/0.6.29<br>
> ><br>
> > This may be incorrectly set daylight saving time offset.<br>
> > Could you show last line from access log and output of<br>
> ><br>
> > date<br>
> ><br>
> > and<br>
> ><br>
> > date -u<br>
> ><br>
> > ?<br>
> ><br>
> ><br>
> > --<br>
> > Igor Sysoev<br>
> > <a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
> ><br>
> ><br>
<br>
</div>--<br>
<div><div></div><div class="Wj3C7c">Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br>