Set date Function Timezone

/ Published in: PHP
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. <?php
  2. ?>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.