Source: lesson_19_f0_others.php | Résultat |
<?php echo "<pre>"; print("server timezone is: " . getenv('TZ') . "\n"); print("server time is: " . date("H:i:s") . "\n"); print("changing server time zone to US/Pacific....\n"); putenv("TZ=US/Pacific"); print("new server time is: " . date("H:i:s") . "\n"); print("new server timezone for this script is: " . getenv('TZ')); ?>
| server timezone is:
server time is: 03:36:57
changing server time zone to US/Pacific....
new server time is: 03:36:57
new server timezone for this script is: US/Pacific
|