Handling DST with date_default_timezone_set() : date_default_timezone_set « Date « PHP






Handling DST with date_default_timezone_set()

 
<?php

date_default_timezone_set('America/Denver');

$summer = mktime(12,0,0,7,4,2008);
print date('c', $summer) . "\n";

date_default_timezone_set('America/Phoenix');
print date('c', $summer) . "\n";
?>
  
  








Related examples in the same category

1.Changing time zone with date_default_timezone_set()