Bug #13187: Concerning jdtounix() function
| From: | studiobl at mageos dot com | Date: | Thu, 06 Sep 2001 23:18:11 +0000 |
| Subject: | Bug #13187: Concerning jdtounix() function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-65294@lists.php.net to get a copy of this message | ||
From: studiobl@mageos.com
Operating system: Linux Redhat 7.1
PHP version: 4.0.6
PHP Bug Type: Calendar related
Bug description: Concerning jdtounix() function
It's not unresolvable but it must be known :
in PHP :
jdtounix(today);
returns a number of seconds sinc an origin (here we call it A)
but in MYSQL :
UNIX_TIMESTAMP(today at 00:00:00)
returns A minus 7200 seconds
that's a difference of 2 hours !
in fact when you do jdtounix(today) it more like jdtounix(today at
02:00:00)....
--
Edit bug report at: http://bugs.php.net/?id=13187&edit=1