Bug #18289: strftime totally buggy!!
| From: | eflash at gmx dot net | Date: | Fri, 12 Jul 2002 01:26:11 +0000 |
| Subject: | Bug #18289: strftime totally buggy!! | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13895@lists.php.net to get a copy of this message | ||
From: eflash@gmx.net
Operating system: Win32
PHP version: 4CVS-2002-07-11
PHP Bug Type: Date/time related
Bug description: strftime totally buggy!!
on Win32 strftime() doesnt return anything for a bunch of formats; related
bug reports:
http://bugs.php.net/bug.php?id=16499
http://bugs.php.net/bug.php?id=16439
http://bugs.php.net/bug.php?id=16498
http://bugs.php.net/bug.php?id=11544
http://bugs.php.net/bug.php?id=15584
Output from testscript:
PHP (4.3.0-dev) says hi to WINNT at July 10, 2002 13:53:21 Westeuropäische
Sommerzeit.
date("D M d, Y H:i:s T") returns: Wed Jul 10, 2002 13:53:21
Westeuropäische Normalzeit
gmdate("D M d, Y H:i:s T") returns: Wed Jul 10, 2002 11:53:21 GMT Standard
Time
strftime("%H:%M:%S") returns: 13:53:21
strftime("%I:%M:%S %p") returns: 01:53:21 PM
strftime("%A") returns: Wednesday
strftime("%a") returns: Wed
strftime("%B") returns: July
strftime("%b") returns: Jul
strftime("%C") returns:
strftime("%c") returns: 07/10/02 13:53:21
strftime("%D") returns:
strftime("%d") returns: 10
strftime("%e") returns:
strftime("%G") returns:
strftime("%g") returns:
strftime("%h") returns:
strftime("%j") returns: 191
strftime("%k") returns:
strftime("%l") returns:
strftime("%m") returns: 07
strftime("%P") returns:
strftime("%p") returns: PM
strftime("%R") returns:
strftime("%r") returns:
strftime("%s") returns:
strftime("%T") returns:
strftime("%U") returns: 27
strftime("%u") returns:
strftime("%w") returns: 3
strftime("%X") returns: 13:53:21
strftime("%x") returns: 07/10/02
strftime("%Y") returns: 2002
strftime("%y") returns: 02
strftime("%Z") returns: Westeuropäische Sommerzeit
strftime("%z") returns: Westeuropäische Sommerzeit
strftime.php testscript:
<html>
<head>
<title>PHP Time/Date Testpage</title>
</head>
<body>
PHP (<b><?=PHP_VERSION?></b>) says hi to <b><?=PHP_OS?></b>
at
<b><?=strftime("%B %d, %Y %H:%M:%S %Z")?></b>.<p>
date("D M d, Y H:i:s T") returns: <?=date("D M d, Y H:i:s
T")?><br>
gmdate("D M d, Y H:i:s T") returns: <?=gmdate("D M d, Y H:i:s
T")?><br>
strftime("%H:%M:%S") returns: <?=strftime("%H:%M:%S")?><br>
strftime("%I:%M:%S %p") returns: <?=strftime("%I:%M:%S
%p")?><br>
strftime("%A") returns: <?=strftime("%A")?><br>
strftime("%a") returns: <?=strftime("%a")?><br>
strftime("%B") returns: <?=strftime("%B")?><br>
strftime("%b") returns: <?=strftime("%b")?><br>
strftime("%C") returns: <?=strftime("%C")?><br>
strftime("%c") returns: <?=strftime("%c")?><br>
strftime("%D") returns: <?=strftime("%D")?><br>
strftime("%d") returns: <?=strftime("%d")?><br>
strftime("%e") returns: <?=strftime("%e")?><br>
strftime("%G") returns: <?=strftime("%G")?><br>
strftime("%g") returns: <?=strftime("%g")?><br>
strftime("%h") returns: <?=strftime("%h")?><br>
strftime("%j") returns: <?=strftime("%j")?><br>
strftime("%k") returns: <?=strftime("%k")?><br>
strftime("%l") returns: <?=strftime("%l")?><br>
strftime("%m") returns: <?=strftime("%m")?><br>
strftime("%P") returns: <?=strftime("%P")?><br>
strftime("%p") returns: <?=strftime("%p")?><br>
strftime("%R") returns: <?=strftime("%R")?><br>
strftime("%r") returns: <?=strftime("%r")?><br>
strftime("%s") returns: <?=strftime("%s")?><br>
strftime("%T") returns: <?=strftime("%T")?><br>
strftime("%U") returns: <?=strftime("%U")?><br>
strftime("%u") returns: <?=strftime("%u")?><br>
strftime("%w") returns: <?=strftime("%w")?><br>
strftime("%X") returns: <?=strftime("%X")?><br>
strftime("%x") returns: <?=strftime("%x")?><br>
strftime("%Y") returns: <?=strftime("%Y")?><br>
strftime("%y") returns: <?=strftime("%y")?><br>
strftime("%Z") returns: <?=strftime("%Z")?><br>
strftime("%z") returns: <?=strftime("%z")?><br>
strftime("%+") returns: <?=strftime("%+")?><br>
</body>
</html>
--
Edit bug report at http://bugs.php.net/?id=18289&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18289&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18289&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18289&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18289&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18289&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18289&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18289&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18289&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18289&r=globals