here&#39;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 &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; 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>
&gt; I think you are on to something.<br>
&gt;<br>
&gt; date: &nbsp;Wed Jun 18 15:23:03 EDT 2008<br>
&gt; date -u: Wed Jun 18 19:23:05 UTC 2008<br>
&gt; access.log: 18/Jun/2008:14:23:34 -0500<br>
&gt;<br>
&gt; I made sure that my tzdata package was up to date and that /etc/localtime<br>
&gt; points to the correct zone at /usr/share/zoneinfo/America/New_York. I then<br>
&gt; gave nginx the HUP signal (not sure if that was necessary).<br>
&gt;<br>
&gt; 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 &lt;time.h&gt;<br>
#include &lt;stdio.h&gt;<br>
<br>
int<br>
main()<br>
{<br>
 &nbsp; &nbsp;time_t &nbsp; &nbsp; &nbsp;s;<br>
 &nbsp; &nbsp;struct tm &nbsp; t;<br>
<br>
 &nbsp; &nbsp;tzset();<br>
<br>
 &nbsp; &nbsp;s = time(NULL);<br>
<br>
 &nbsp; &nbsp;(void) localtime_r(&amp;s, &amp;t);<br>
<br>
 &nbsp; &nbsp;printf(&quot;%02d:%02d %d %d\n&quot;, t.tm_hour, t.tm_min, t.tm_isdst, timezone);<br>
<br>
 &nbsp; &nbsp;return 0;<br>
}<br>
----------<br>
<br>
Also could you send the output of nginx&#39;s ./configure ?<br>
<div class="Ih2E3d"><br>
&gt; -Jake<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jun 18, 2008 at 2:52 PM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Wed, Jun 18, 2008 at 02:10:37PM -0400, J Davis wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; I&#39;m trying to figure out why my nginx access log timestamps are an hour<br>
&gt; &gt; &gt; behind the actual time.<br>
&gt; &gt; &gt; I&#39;ve confirmed that the &quot;date&quot; and &quot;hwclock&quot; commands both return the<br>
&gt; &gt; proper<br>
&gt; &gt; &gt; values on the system and that the timezone is correct but the timestamps<br>
&gt; &gt; in<br>
&gt; &gt; &gt; the nginx logs are all an hour off.<br>
&gt; &gt; &gt; I realize this may not be an Nginx problem but I&#39;m not sure how else to<br>
&gt; &gt; &gt; narrow down the possibilities.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Any insights are greatly appreciated.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; RedHat el5 &nbsp;- 2.6.18-8.el5<br>
&gt; &gt; &gt; nginx/0.6.29<br>
&gt; &gt;<br>
&gt; &gt; This may be incorrectly set daylight saving time offset.<br>
&gt; &gt; Could you show last line from access log and output of<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp;date<br>
&gt; &gt;<br>
&gt; &gt; and<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp;date -u<br>
&gt; &gt;<br>
&gt; &gt; ?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Igor Sysoev<br>
&gt; &gt; <a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
&gt; &gt;<br>
&gt; &gt;<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>