User tests: Successful: Unsuccessful:
At the moment, if you use JHtmlDate::relative, it's not possible to set a custom format for the "fallback date" output. With this patch you can now set your own format.
Open any file and write:
echo JHtml::_('date.relative', '2010-09-20');
Depending on your language, the format is always JText::_('DATE_FORMAT_LC1');
Apply patch and try:
echo JHtml::_('date.relative', '2010-09-20', null, null, 'M jS, Y');
Now you can set your own formats
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Libraries |
Tested successfully with different date formats.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-09-25 07:15:50 |
Closed_By | ⇒ | rdeutz |
Labels |
Added:
?
?
Removed: ? |
Labels |
Added:
?
?
Removed: ? |
Category | Libraries | ⇒ | Administration Components Installation Language & Strings |
Tested successfully with different date formats.