#43548 [Fbk-Opn]: date() returns incorrect time by +1 hour

2007-12-10 Thread andrew at confirmalert dot com dot au
 ID:   43548
 User updated by:  andrew at confirmalert dot com dot au
 Reported By:  andrew at confirmalert dot com dot au
-Status:   Feedback
+Status:   Open
 Bug Type: Date/time related
 Operating System: Win 2003 Server SP2
 PHP Version:  5.2.5
 New Comment:

Answer 1.
=
The output for PHP 5.2.5 is:
-
C:\php-5.2.5php test2.php
Europe/London
-

Answer 2.
=
The output for php 5.2.5 of 2007-09-24 @ 11:00 is accurate for
Europe/London.

The output for php 5.2.5 is inaccurate for Morroco/Casablanca which is
the timezone that the server has been set to i.e. London was observing
daylight savings time on the above date. Casablanca was not (2007-09-24
@ 10:00). See the following link for details ...

http://www.timeanddate.com/worldclock/fixedtime.html?month=9day=24year=2007hour=10min=0sec=0p1=0

It appears that php 5.2.5 does not accurately pickup the timezone set
by the Windows operating system.


Previous Comments:


[2007-12-10 08:16:05] [EMAIL PROTECTED]

Please answer my questions:

1. What is the output of:

?php
echo date_default_timezone_get(), \n;
?

2. What is wrong with the PHP 5.2.5 output?



[2007-12-09 23:01:36] andrew at confirmalert dot com dot au

Hi Derick. 

PHP versions up to 5.0.3 were producing a result of '2007-09-24 @
10:00'. PHP 5.2.5 produces '2007-09-24 @ 11:00' which +1 hour
difference. This breaks our online diary system. 

Cheers. 
Andrew



[2007-12-09 22:23:24] [EMAIL PROTECTED]

What is wrong with the PHP 5.2.5 output?



[2007-12-09 22:00:21] andrew at confirmalert dot com dot au

Description:

OK. I can reproduce this bug. The previous ticket was closed
prematurely and with an incorrect status. So there is no doubt or
miscommunication I have re-run the test on the same machine using the
two versions of PHP. The results are the still the same as originally
reported in bug '42755 date() returns incorrect time by +1 hour'.

Reproduce code:
---
==
code - test1.php
==
?php
echo date(Y-m-d @ g:i, 1190671200);
?

Expected result:

==
result using php 5.0.3
==
C:\PHPphp test1.php
2007-09-24 @ 10:00

C:\PHPphp --version
PHP 5.0.3 (cli) (built: Dec 15 2004 08:07:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

Actual result:
--
==
result using php 5.2.5
==
C:\php-5.2.5php test1.php
2007-09-24 @ 11:00

C:\php-5.2.5php --version
PHP 5.2.5 (cli) (built: Nov  8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies





-- 
Edit this bug report at http://bugs.php.net/?id=43548edit=1


#42755 [Fbk-Opn]: date() returns incorrect time by +1 hour

2007-12-09 Thread andrew at confirmalert dot com dot au
 ID:   42755
 User updated by:  andrew at confirmalert dot com dot au
 Reported By:  andrew at confirmalert dot com dot au
-Status:   Feedback
+Status:   Open
 Bug Type: Date/time related
 Operating System: Win 2003 Server SP2
 PHP Version:  5.2.4
 New Comment:

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.


C:\PHPphp test.php


Fatal error: Call to undefined function date_default_timezone_get() in
C:\PHP\test.php on line 3

C:\PHPphp --version
PHP 5.0.3 (cli) (built: Dec 15 2004 08:07:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

Timezone is '(GMT) Casablanca, Monrovia, Reykjavik'


Previous Comments:


[2007-12-08 15:42:04] [EMAIL PROTECTED]

What's the output of:

?php
echo ini_get( 'date.timezone' ), \n;
echo date_default_timezone_get(), \n;

?



[2007-12-05 21:26:14] matthew at syxton dot com

I'm having the same issue with PHP 5.2.4 running on Linux platform.



[2007-09-25 10:51:18] andrew at confirmalert dot com dot au

Description:

Date function parses correct unix timestamp in PHP 5.0.3 but not in PHP
5.2.4.

I have set the timezone of the webserver to Casablanca Morroco which is
a timezone that does not observe ANY daylight savings changes (i.e. it
is a constant time) even though the server is physically located in San
Diego USA.

Reproduce code:
---
date(Y-m-d @ g:i, 1190671200);

Expected result:

//Expected 2007-09-25 @ 8:00

Actual result:
--
//Produces 2007-09-25 @ 9:00





-- 
Edit this bug report at http://bugs.php.net/?id=42755edit=1


#43548 [NEW]: date() returns incorrect time by +1 hour

2007-12-09 Thread andrew at confirmalert dot com dot au
From: andrew at confirmalert dot com dot au
Operating system: Win 2003 Server SP2
PHP version:  5.2.5
PHP Bug Type: Date/time related
Bug description:  date() returns incorrect time by +1 hour

Description:

OK. I can reproduce this bug. The previous ticket was closed prematurely
and with an incorrect status. So there is no doubt or miscommunication I
have re-run the test on the same machine using the two versions of PHP. The
results are the still the same as originally reported in bug '42755 date()
returns incorrect time by +1 hour'.

Reproduce code:
---
==
code - test1.php
==
?php
echo date(Y-m-d @ g:i, 1190671200);
?

Expected result:

==
result using php 5.0.3
==
C:\PHPphp test1.php
2007-09-24 @ 10:00

C:\PHPphp --version
PHP 5.0.3 (cli) (built: Dec 15 2004 08:07:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

Actual result:
--
==
result using php 5.2.5
==
C:\php-5.2.5php test1.php
2007-09-24 @ 11:00

C:\php-5.2.5php --version
PHP 5.2.5 (cli) (built: Nov  8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

-- 
Edit bug report at http://bugs.php.net/?id=43548edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43548r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43548r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43548r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43548r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43548r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=43548r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=43548r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=43548r=needscript
Try newer version:http://bugs.php.net/fix.php?id=43548r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=43548r=support
Expected behavior:http://bugs.php.net/fix.php?id=43548r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=43548r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=43548r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43548r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43548r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43548r=dst
IIS Stability:http://bugs.php.net/fix.php?id=43548r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=43548r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43548r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=43548r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=43548r=mysqlcfg


#43548 [Fbk-Opn]: date() returns incorrect time by +1 hour

2007-12-09 Thread andrew at confirmalert dot com dot au
 ID:   43548
 User updated by:  andrew at confirmalert dot com dot au
 Reported By:  andrew at confirmalert dot com dot au
-Status:   Feedback
+Status:   Open
 Bug Type: Date/time related
 Operating System: Win 2003 Server SP2
 PHP Version:  5.2.5
 New Comment:

Hi Derick. 

PHP versions up to 5.0.3 were producing a result of '2007-09-24 @
10:00'. PHP 5.2.5 produces '2007-09-24 @ 11:00' which +1 hour
difference. This breaks our online diary system. 

Cheers. 
Andrew


Previous Comments:


[2007-12-09 22:23:24] [EMAIL PROTECTED]

What is wrong with the PHP 5.2.5 output?



[2007-12-09 22:00:21] andrew at confirmalert dot com dot au

Description:

OK. I can reproduce this bug. The previous ticket was closed
prematurely and with an incorrect status. So there is no doubt or
miscommunication I have re-run the test on the same machine using the
two versions of PHP. The results are the still the same as originally
reported in bug '42755 date() returns incorrect time by +1 hour'.

Reproduce code:
---
==
code - test1.php
==
?php
echo date(Y-m-d @ g:i, 1190671200);
?

Expected result:

==
result using php 5.0.3
==
C:\PHPphp test1.php
2007-09-24 @ 10:00

C:\PHPphp --version
PHP 5.0.3 (cli) (built: Dec 15 2004 08:07:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

Actual result:
--
==
result using php 5.2.5
==
C:\php-5.2.5php test1.php
2007-09-24 @ 11:00

C:\php-5.2.5php --version
PHP 5.2.5 (cli) (built: Nov  8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies





-- 
Edit this bug report at http://bugs.php.net/?id=43548edit=1


#42755 [NEW]: date() returns incorrect time by +1 hour

2007-09-25 Thread andrew at confirmalert dot com dot au
From: andrew at confirmalert dot com dot au
Operating system: Win 2003 Server SP2
PHP version:  5.2.4
PHP Bug Type: *General Issues
Bug description:  date() returns incorrect time by +1 hour

Description:

Date function parses correct unix timestamp in PHP 5.0.3 but not in PHP
5.2.4.

I have set the timezone of the webserver to Casablanca Morroco which is a
timezone that does not observe ANY daylight savings changes (i.e. it is a
constant time) even though the server is physically located in San Diego
USA.

Reproduce code:
---
date(Y-m-d @ g:i, 1190671200);

Expected result:

//Expected 2007-09-25 @ 8:00

Actual result:
--
//Produces 2007-09-25 @ 9:00

-- 
Edit bug report at http://bugs.php.net/?id=42755edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42755r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42755r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42755r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42755r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=42755r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=42755r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=42755r=needscript
Try newer version:http://bugs.php.net/fix.php?id=42755r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=42755r=support
Expected behavior:http://bugs.php.net/fix.php?id=42755r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=42755r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=42755r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42755r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42755r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42755r=dst
IIS Stability:http://bugs.php.net/fix.php?id=42755r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=42755r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42755r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=42755r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=42755r=mysqlcfg