ID:               34571
 Updated by:       [EMAIL PROTECTED]
 Reported By:      o dot persson at gmail dot com
 Status:           Open
 Bug Type:         Date/time related
 Operating System: Debian GNU/Linux
 PHP Version:      5.1.0RC1
 New Comment:

Works fine here with 5.1.0RC2 and 6.0.0dev:

array(9) {
  ["tm_sec"]=>
  int(16)
  ["tm_min"]=>
  int(23)
  ["tm_hour"]=>
  int(9)
  ["tm_mday"]=>
  int(21)
  ["tm_mon"]=>
  int(8)
  ["tm_year"]=>
  int(105)
  ["tm_wday"]=>
  int(3)
  ["tm_yday"]=>
  int(263)
  ["unparsed"]=>
  string(4) "CEST"
}

perhaps you have an old glibc, which one do you use? Also, try the
latest snapshot off http://snaps.php.net.


Previous Comments:
------------------------------------------------------------------------

[2005-09-21 03:49:45] o dot persson at gmail dot com

Description:
------------
It doesn't work with %z. %Z, or no %z works.


Reproduce code:
---------------
<?php
$format = '%Y-%m-%d %H:%M:%S %Z';
$strf = strftime($format);
var_dump(strptime($strf, $format));
?>


Expected result:
----------------
An array with the date parsed.

Actual result:
--------------
False.


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


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

Reply via email to