note 24980 added to function.gmdate
| From: | jonbh98 at hotmail dot com | Date: | Fri, 06 Sep 2002 15:56:13 +0000 |
| Subject: | note 24980 added to function.gmdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36250@lists.php.net to get a copy of this message | ||
I have some problems getting a GMT+1 time. I think it's something wrong with my code, but I
can't see it.
$date = gmdate("d.m.Y H:i:s", mktime(date("H")+1, date("i"),
date("s"), date("m"), date("d"), date("Y")));
This line returns wrong date, and my computer is set to GMT+1. So if the hour is 09 on my computer,
is returns 08! I really can't figure out what's wrong here!
--
http://www.php.net/manual/en/function.gmdate.php
http://master.php.net/manage/user-notes.php?action=edit+24980
http://master.php.net/manage/user-notes.php?action=delete+24980
http://master.php.net/manage/user-notes.php?action=reject+24980