Edit report at http://bugs.php.net/bug.php?id=52429&edit=1

 ID:               52429
 User updated by:  patrice dot flahault at accessprinting dot fr
 Reported by:      patrice dot flahault at accessprinting dot fr
 Summary:          date_default_timezone error
 Status:           Open
 Type:             Bug
 Package:          Date/time related
 Operating System: centos 5.5
 PHP Version:      5.3.3

 New Comment:

There is one difference my php version is 5.3.2


Previous Comments:
------------------------------------------------------------------------
[2010-07-25 11:45:19] patrice dot flahault at accessprinting dot fr

Ramus,



My code is : 

date_default_timezone_set('Europe/Paris');

echo date('H:i e') .'<br />';

date_default_timezone_set('Europe/Madrid');

echo date('H:i e') ;



You can try it at : www.accessprinting.fr/test/test.php

------------------------------------------------------------------------
[2010-07-24 20:30:23] [email protected]

Looks fine to me..



[da...@lyon ~]$ php t.php 

int(1279996161)

string(25) "2010-07-24T20:29:21+02:00"

[da...@lyon ~]$ cat t.php 

<?php

var_dump(time());

date_default_timezone_set('Europe/Paris');

var_dump(date('c'));

------------------------------------------------------------------------
[2010-07-24 18:09:40] [email protected]

Are you sure you haven't done something else wrong?  I just fired up a
Centos VM 

and tried it:



<?php

date_default_timezone_set('Europe/Paris');

echo date("H:i:s");

echo "\n";

date_default_timezone_set('Europe/Madrid');

echo date("H:i:s");



The output is:



18:08:25

18:08:25



No 6-hour difference there.

------------------------------------------------------------------------
[2010-07-24 18:01:48] patrice dot flahault at accessprinting dot fr

Description:
------------
The time zone Europe/Paris gives a wrong time.



date_default_timezone_set('Europe/Paris');

should be the same as :

date_default_timezone_set('Europe/Madrid');     



but there is a 6 hour difference.





------------------------------------------------------------------------



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

Reply via email to