GMT (+0) time
echo $today = strtotime('today GMT'); echo "<br>" . $today = date("dmY H:i:s", $today);
We expect your server to work in GMT - this is the best (for maneuvering with time display later). If not, you MUST adjust php.ini, set this to "date.timezone = GMT".
When you do this, you will see 00:00 with my codes.
Then you must create a function (i.e. DisplayDate ()) in the script to correctly display your site dates if
- You are not in GMT
- or /, and if you want your users to see the time in their time zone with a choice of time zone, for example.
DisplayDate () should also include support for daylight changes (0 or +1 hour / summer and winter time).
Xfile
source share