-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/06/2010 18:26:42, Gary Kline wrote:
> can anybody 'splain what suddenly went wrong with my two-year-old 
> php script?

Simple.  You upgraded to php-5.3.x.  This is a well known gotcha --
php-5.3.x needs to have the timezone set explicitly in
/usr/local/etc/php.ini.  If you haven't got a php.ini, then just copy
one of the sample files, php.ini-production for preference, and edit it
like so (although your timezone is almost certainly not Europe/London,
so substitute accordingly):

% diff -u php.ini-production php.ini
- --- php.ini-production        2010-05-31 10:03:32.000000000 +0100
+++ php.ini     2010-04-27 15:53:52.000000000 +0100
@@ -1002,7 +1002,7 @@
 [Date]
 ; Defines the default timezone used by the date functions
 ; http://php.net/date.timezone
- -;date.timezone =
+date.timezone = Europe/London

 ; http://php.net/date.default-latitude
 ;date.default_latitude = 31.7667

        Cheers,

        Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matt...@infracaninophile.co.uk               Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwTyKAACgkQ8Mjk52CukIzCegCaAgFCmpJewNjbJJrslNdHGdyq
/fgAnjoCsVwUK/koPT7TzrM26UsXgro3
=06OP
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to