GMT strtotime() problem today!!

From: Date: Mon, 31 Mar 2003 14:45:13 +0000
Subject: GMT strtotime() problem today!!
Groups: php.general 
Request: Send a blank email to php-general+get-141695@lists.php.net to get a copy of this message
Im having big problems - I have a script that runs on over 250 Servers, all are running NT4. here is the script: [php] function last_sunday() { return gmdate("Y-m-d", strtotime("Last Sunday")); } echo "Last Sunday is returned as: ".last_sunday(); [/php] Some servers have 'automatically adjust clock for daylight saving changes' switched on, some have this off - (im in the UK GMT +0). With daylight saving on the above script returns: 2003-03-29 With daylight saving off the above script returns: 2003-03-30 Im puzzled with this one - any ideas? -Stuart |-----------------------------| |- www.php-editors.com | |- php programming contests | |- php tool reviews | |- php everything else | |-----------------------------|

« previous php.general (#141695) next »