Posted By

johnself on 04/06/08


Tagged

time date timezone gmt


Versions (?)

Set date Function Timezone


 / Published in: PHP
 

URL: http://php.net/manual/en/function.date-default-timezone-set.php

Instead of using this function to set the default timezone in your script, you can also use the INI setting date.timezone to set the default timezone.

  • Does not affect timestamp functions, which are all GMT
  1. <?php
  2. date_default_timezone_set('US/Central');
  3. ?>

Report this snippet  

You need to login to post a comment.