From owner-freebsd-questions@FreeBSD.ORG Wed Jun 15 20:18:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E218A16A41C for ; Wed, 15 Jun 2005 20:18:14 +0000 (GMT) (envelope-from bjmccann@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA5CB43D48 for ; Wed, 15 Jun 2005 20:18:14 +0000 (GMT) (envelope-from bjmccann@gmail.com) Received: by zproxy.gmail.com with SMTP id 18so12869nzp for ; Wed, 15 Jun 2005 13:18:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eZs7Ah6llu+dY+ONB0euZta/8WGm2fyclVagEDhUjccfRXHIbIqmx8Ymo/suhSoYs3YNwK+DfycuTcpZby3r/2byR+N1y2woXedeT9yucS5qbv+DrpqHimpxL6D7Sw5ZMnRsH9qw9SXOjh1xF5wRFT5D7Y0u+ZO7u8so5Uh0efg= Received: by 10.36.108.5 with SMTP id g5mr80475nzc; Wed, 15 Jun 2005 13:18:14 -0700 (PDT) Received: by 10.36.48.3 with HTTP; Wed, 15 Jun 2005 13:18:14 -0700 (PDT) Message-ID: <2b5f066d05061513186ca7b076@mail.gmail.com> Date: Wed, 15 Jun 2005 16:18:14 -0400 From: Brian McCann To: Jeff Wirth In-Reply-To: <5d2cf6920506151311e8b4597@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2b5f066d050615081856243a9d@mail.gmail.com> <5d2cf6920506151311e8b4597@mail.gmail.com> Cc: freebsd-questions Subject: Re: Apache logging? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Brian McCann List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2005 20:18:15 -0000 On 6/15/05, Jeff Wirth wrote: > > Anyone here know how to get Apache to log in GMT when the system clock > > is in local time? I can't imagine this being "impossible"...but I >=20 > you didn't mention what version of apache... >=20 > 1.3.* -> http://httpd.apache.org/docs/logs.html#accesslog >=20 > [10/Oct/2000:13:55:36 -0700] (%t) > The time that the server finished processing the request. The format = is: >=20 > [day/month/year:hour:minute:second zone] > day =3D 2*digit > month =3D 3*letter > year =3D 4*digit > hour =3D 2*digit > minute =3D 2*digit > second =3D 2*digit > zone =3D (`+' | `-') 4*digit >=20 > It is possible to have the time displayed in another format by > specifying %{format}t in the log format string, where format is as in > strftime(3) from the C standard library. >=20 > -jeff >=20 Thanks Jeff! Just as I got your message I found a work around that worked for me. I set the TZ environment variable in the RC script to me GMT and that did the trick. Thanks! --Brian --=20 _-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_ Brian McCann Systems & Network Administrator, K12USA "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters"