Forgot this part...<br><br>./configure <br>checking for OS<br> + Linux 2.6.18-8.el5 x86_64<br>checking for C compiler ... found<br> + using GNU C compiler<br> + gcc version: 4.1.2 20070626 (Red Hat 4.1.2-14)<br>checking for gcc -pipe switch ... found<br>
checking for gcc variadic macros ... found<br>checking for C99 variadic macros ... found<br>checking for unistd.h ... found<br>checking for inttypes.h ... found<br>checking for limits.h ... found<br>checking for sys/filio.h ... not found<br>
checking for crypt.h ... found<br>checking for malloc.h ... found<br>checking for Linux specific features<br>checking for epoll ... found<br>checking for sendfile() ... found<br>checking for sendfile64() ... found<br>checking for sys/prctl.h ... found<br>
checking for prctl(PR_SET_DUMPABLE) ... found<br>checking for sched_setaffinity() ... found<br>checking for nobody group ... found<br>checking for poll() ... found<br>checking for /dev/poll ... not found<br>checking for kqueue ... not found<br>
checking for crypt() ... not found<br>checking for crypt() in libcrypt ... found<br>checking for PCRE library ... found<br>checking for zlib library ... found<br>checking for int size ... 4 bytes<br>checking for long size ... 8 bytes<br>
checking for long long size ... 8 bytes<br>checking for void * size ... 8 bytes<br>checking for uint64_t ... found<br>checking for sig_atomic_t ... found<br>checking for sig_atomic_t size ... 4 bytes<br>checking for socklen_t ... found<br>
checking for in_addr_t ... found<br>checking for in_port_t ... found<br>checking for rlim_t ... found<br>checking for uintptr_t ... uintptr_t found<br>checking for system endianess ... little endianess<br>checking for size_t size ... 8 bytes<br>
checking for off_t size ... 8 bytes<br>checking for time_t size ... 8 bytes<br>checking for setproctitle() ... not found<br>checking for pread() ... found<br>checking for pwrite() ... found<br>checking for strerror_r() ... found but is not working<br>
checking for gnu style strerror_r() ... found<br>checking for localtime_r() ... found<br>checking for posix_memalign() ... found<br>checking for memalign() ... found<br>checking for sched_yield() ... found<br>checking for mmap(MAP_ANON|MAP_SHARED) ... found<br>
checking for mmap("/dev/zero", MAP_SHARED) ... found<br>checking for System V shared memory ... found<br>checking for struct msghdr.msg_control ... found<br>checking for ioctl(FIONBIO) ... found<br>checking for struct tm.tm_gmtoff ... found<br>
<br>Configuration summary<br> + threads are not used<br> + using system PCRE library<br> + OpenSSL library is not used<br> + md5 library is not used<br> + sha1 library is not used<br> + using system zlib library<br>
<br> nginx path prefix: "/usr/local/nginx"<br> nginx binary file: "/usr/local/nginx/sbin/nginx"<br> nginx configuration prefix: "/usr/local/nginx/conf"<br> nginx configuration file: "/usr/local/nginx/conf/nginx.conf"<br>
nginx pid file: "/usr/local/nginx/logs/nginx.pid"<br> nginx error log file: "/usr/local/nginx/logs/error.log"<br> nginx http access log file: "/usr/local/nginx/logs/access.log"<br> nginx http client request body temporary files: "/usr/local/nginx/client_body_temp"<br>
nginx http proxy temporary files: "/usr/local/nginx/proxy_temp"<br> nginx http fastcgi temporary files: "/usr/local/nginx/fastcgi_temp"<br><br><br>Thanks!<br><br><div class="gmail_quote">On Thu, Jun 19, 2008 at 8:07 AM, J Davis <<a href="mailto:mrsalty0@gmail.com">mrsalty0@gmail.com</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;">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<div><div></div><div class="Wj3C7c"><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" target="_blank">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>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><br>
> -Jake<br>
><br>
><br>
> On Wed, Jun 18, 2008 at 2:52 PM, Igor Sysoev <<a href="mailto:is@rambler-co.ru" target="_blank">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>Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>