ID: 34292 Updated by: [EMAIL PROTECTED] Reported By: Admin at relax-info dot com -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: Windows XP SP2 PHP Version: 5.1.0RC1 New Comment:
Have you set date.timezone php.ini setting correctly? (what is it?) Previous Comments: ------------------------------------------------------------------------ [2005-08-29 00:55:24] Admin at relax-info dot com Sorry, Expected result: ---------------- Sun, 28 Aug 2005 01:44:05 +0300 ------------------------------------------------------------------------ [2005-08-29 00:51:18] Admin at relax-info dot com Description: ------------ PHP don't give proper weigh Timezone setting of my machine. Difference to Greenwich time (GMT) in hours = 0 Reproduce code: --------------- <?php $timestamp = 1125267228; print_r(date('r', $timestamp)); ?> Expected result: ---------------- Sun, 28 Aug 2005 01:44:05 +0200 Actual result: -------------- Sun, 28 Aug 2005 22:44:05 +0000 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34292&edit=1