Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a4

Request #11090 microtime is not set by default constructor
Submitted: 2007-05-22 01:19 UTC
From: setafujisystems Assigned: c01234
Status: Closed Package: Date (version 1.4.7)
PHP Version: 5.2.0 OS: Linux
Roadmaps: (Not assigned)    

 [2007-05-22 01:19 UTC] setafujisystems (Seta Fujisystems)
Description: ------------ The microtime field is not set, when a PEAR::Date object is constructed by the default counstructor. Test script: --------------- require_once("Date.php"); $date = new Date(); echo $date->getDate(DATE_FORMAT_ISO_EXTENDED_MICROTIME) . "\n";' Expected result: ---------------- Time with microtime will be displayed like: 2007-05-22T09:59:06.123456 Actual result: -------------- The microtime was 000000 like: 2007-05-22T09:59:06.000000


 [2007-11-06 01:52 UTC] c01234 (Chuckie Chuck)
Implemented this is Date::constructor() using gettimeofday() Could this be problematic in some way?
 [2007-11-06 01:53 UTC] c01234 (Chuckie Chuck)
implemented in CVS
 [2008-03-23 23:06 UTC] c01234 (Chuckie Chuck)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at