From: djhobson at bigpond dot net dot au
Operating system: Win XP SP 2 - Latest Patches
PHP version: 5.2.0
PHP Bug Type: Output Control
Bug description: strftime does not output %D (%m/%d/%y)
Description:
------------
strftime() is failing to output the designated results as given to the
specified online PHP documents.
Reproduce code:
---------------
Script Name:-
gettime.php
Script contents:-
<?php
$time = 1162623699;
$date = strftime("%D", $time);
$theclock = strftime("%T", $time);
$currenttime = $date." ".$theclock;
echo $currenttime."\r\n";
exit;
?>
Output:-
Y:\>php gettime.php
Y:\>
PS: I see there is already a post in regards to %T output, but %D is the
same!
Expected result:
----------------
Expected results from online & current downloadable documentation is that
from the given code I should see something like:-
%D - same as %m/%d/%y
%T - current time, equal to %H:%M:%S
Simply, NOT HAPPENING MAN!
--
Edit bug report at http://bugs.php.net/?id=39373&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39373&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39373&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39373&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39373&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39373&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39373&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39373&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39373&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39373&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39373&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39373&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39373&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39373&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39373&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39373&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39373&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39373&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39373&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39373&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39373&r=mysqlcfg