Simpson, Kenneth escribió:
> Hi - would someone please show me how to update 
> 
>     suse-release-9.3-4
> 
> to the correct timezone? 
> 
> Note, I need to patch only the DST problem - we can't afford to update the 
> entire OS at this time.
> 

a simple test.

<?php

if(function_exists('date_default_timezone_set')) {
    date_default_timezone_set('America/Los_Angeles');
} else {
    //php < 5.1
    putenv("TZ=America/Los_Angeles");
}

if(mktime(2, 0, 0, 3, 11, 2007) == mktime(3, 0, 0, 3, 11, 2007)) {
    echo "You are OK :-)" . PHP_EOL;
} else {
    echo "Press the Panic button now!! ;P" . PHP_EOL;
}
?>



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to