From owner-freebsd-questions@FreeBSD.ORG Sun Mar 1 08:12:06 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95115106566B for ; Sun, 1 Mar 2009 08:12:06 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 65FB08FC1A for ; Sun, 1 Mar 2009 08:12:06 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.lan.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id B659DAFC1FE; Sat, 28 Feb 2009 23:12:05 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 28 Feb 2009 23:12:05 -0900 User-Agent: KMail/1.9.10 References: <886535.35573.qm@web111204.mail.gq1.yahoo.com> <49A9E9D3.8030400@radel.com> In-Reply-To: <49A9E9D3.8030400@radel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902282312.05400.fbsd.questions@rachie.is-a-geek.net> Cc: Monty Pyth , Jon Radel Subject: Re: Apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2009 08:12:06 -0000 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.