From owner-freebsd-questions Tue Dec 24 6:50:26 2002 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 2E26A37B401 for ; Tue, 24 Dec 2002 06:50:24 -0800 (PST) Received: from malkav.snowmoon.com (malkav.snowmoon.com [209.23.60.62]) by mx1.FreeBSD.org (Postfix) with SMTP id 94AA443F07 for ; Tue, 24 Dec 2002 06:50:19 -0800 (PST) (envelope-from jaime@snowmoon.com) Received: (qmail 21047 invoked from network); 24 Dec 2002 14:50:18 -0000 Received: from localhost.snowmoon.com (HELO localhost) (127.0.0.1) by localhost.snowmoon.com with SMTP; 24 Dec 2002 14:50:18 -0000 Date: Tue, 24 Dec 2002 09:50:18 -0500 (EST) From: jaime@snowmoon.com To: freebsd-questions@freebsd.org Subject: PHP port bug? Message-ID: <20021224094126.K20887-100000@malkav.snowmoon.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I think that I have found a problem with installing the mod_php4 port. It has not set the time zone correctly for me for quite some time. Consider the following:
";
echo "Local: " . date( "D, j M Y H:i:s" ) . "
"; echo "Z: " . date( "Z" ) . "
"; echo "O: " . date( "O" ) . "
"; echo "T: " . date( "T" ) . "
"; echo "Env: " . getenv("TZ"); ?>
Which is outputting: GMT: Tue, 24 Dec 2002 14:14:51 Local: Tue, 24 Dec 2002 14:14:51 Z: 0 O: +0000 T: GMT Env: US/Eastern This is on the following system: zeus:jkikpole>uname -a FreeBSD zeus.cairodurham.org 4.7-STABLE FreeBSD 4.7-STABLE #7: Tue Nov 19 20:26:25 EST 2002 jkikpole@zeus.cairodurham.org:/usr/obj/usr/src/sys/ZEUS i386 Meanwhile, on another system that is running: [jaime:jaime]> uname -a FreeBSD malkav.snowmoon.com 4.6-RC FreeBSD 4.6-RC #2: Tue Jun 4 13:32:21 EDT 2002 jaime@malkav.snowmoon.com:/usr/obj/usr/src/sys/MALKAV i386 I get the following output for the same script: GMT: Tue, 24 Dec 2002 14:16:56 Local: Tue, 24 Dec 2002 09:16:56 Z: -18000 O: -0500 T: EST Env: This means that the FBSD 4.7 system with the mod_php4 port version 4.2.3 is not understanding that its time zone is EST. For some reason, it has an environment variable of "US/Eastern" which the FBSD 4.6 system running mod_php4 version 4.2.1 does not. Despite that environment variable, the actual time zone that the mod_php4 binary understands itself to be in is still "GMT". This causes all kinds of fun with my web mail systems. ;) Any advise or pointers would be appreciated. I've tried to RTFM (and even the freshports.org CVS system and a little of the source code) but have had no luck figuring this out. Can anyone else even reproduce this error? Thanks in advance, Jaime To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message