User tests: Successful: Unsuccessful:
As discussed in #11888 this PR adds the microsconds when creating a JDate('now') so 'now' is really 'now' and not with a delay up to 0.99(9) seconds.
$date1 = new JDate('now'); usleep(1000); $date2 = new JDate('now');
$app->enqueueMessage($date1->format('Y-m-d H:i:s.u') . '<br />' . $date2->format('Y-m-d H:i:s.u'), 'notice');
This page in the docs should probably be updated https://docs.joomla.org/How_to_use_JDate
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
?
|
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
This page in the docs should probably be updated https://docs.joomla.org/How_to_use_JDate
ok updated PR description
Nothing there needs updating as there's no documentation about microseconds not being honored before the patch or any notes about incompatibilities with microsecond formats (which there wouldn't be any; all the formatting is done by the parent DateTime
class, we just had a limitation that kept "now" from storing microseconds when instantiating the object).
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-09-06 21:34:27 |
Closed_By | ⇒ | wilsonge |
Labels |
Added:
?
Removed: ? |
I have tested this item✅ successfully on 90cc89a
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11890.