|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-09-21 03:49 UTC] 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 11:00:02 2025 UTC |
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.