Date: 09/13/01
- Next message: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Previous message: alberty <email protected>: "[PHP-DEV] Bug #13287: MySQL, PHP and a random problem"
- Next in thread: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: hholzgra <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: derick <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: SeanECoates <email protected>
Operating system: Win2000, Linux
PHP version: 4.0.6
PHP Bug Type: Date/time related
Bug description: date() works incorrectly for first week of April 2001
I hope I haven't overlooked something (again), but this just popped up, and
is hurting my current application, big-time.
PHP is reporting certain timestamps as the wrong date (specifically, I've
found the first week of April 2001 the be erraneous). I noticed that MySQL
was converting a specific set of timestamps to dates differently than my
php app. So, I tested against perl as well, and PHP is definitely doing
SOMETHING weird..
Here are the results:
[mysql]
SELECT 986184000 AS unix_time,
FROM_UNIXTIME(986184000) AS date_stamp,
UNIX_TIMESTAMP('2001-04-01 23:00:00') AS unix_time
--> unix_time=98618400, date_stamp='2001-04-01 23:00:00',
unix_time=98618400
[php]
sean <email protected>:~$ echo '<?php $date_stamp=986184000; echo $date_stamp ." = ".
date("M d, Y, H:i:s A",$date_stamp) ."\n" ?>' | php -q
986184000 = Apr 01, 2001, 23:00:00 PM
[perl]
sean <email protected>:~$ perl -MPOSIX -le 'print ctime(986184000)'
Sun Apr 1 23:00:00 2001
Again, I'm really sorry to waste your collective time if this is my
mistake.
S
-- Edit bug report at: http://bugs.php.net/?id=13288&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Previous message: alberty <email protected>: "[PHP-DEV] Bug #13287: MySQL, PHP and a random problem"
- Next in thread: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: hholzgra <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: derick <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Reply: SeanECoates <email protected>: "[PHP-DEV] Bug #13288 Updated: date() works incorrectly for first week of April 2001"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

