Date: Sat, 28 Feb 2009 23:12:05 -0900 From: Mel <fbsd.questions@rachie.is-a-geek.net> To: freebsd-questions@freebsd.org Cc: Monty Pyth <freebsdnewb@yahoo.com>, Jon Radel <jon@radel.com> Subject: Re: Apache Message-ID: <200902282312.05400.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <49A9E9D3.8030400@radel.com> References: <886535.35573.qm@web111204.mail.gq1.yahoo.com> <49A9E9D3.8030400@radel.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 28 February 2009 16:50:11 Jon Radel wrote: > Monty Pyth wrote: > > Does anyone know what file Apache checks to get the time zone offset for > > httpd-access.log? > > > > 65.223.44.56 - frank [10/Oct/2000:13:55:36 -0500] "GET /apache_pb.gif > > HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] > > (Win98; I ;Nav)" > > > > Where does Apache get the -0500 from? I know many people say the system > > clock, but what file is it checking for that? > > Why must it be getting it from a file? See, for example, > > man 2 gettimeofday > > which is a call in the standard C library that returns the time in GMT > *and* the time zone the system clock is set to. It's still a file....../etc/localtime. Yes, gettimeofday gets it from there, really. See the Note: timezone is no longer used; this information is kept outside the kernel. Also see, tzsetup(8), specifically the FILES and BUGS section. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902282312.05400.fbsd.questions>