? ? Success

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
24 Sep 2016

Summary of Changes

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.

Testing Instructions

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

avatar bembelimen bembelimen - open - 24 Sep 2016
avatar bembelimen bembelimen - change - 24 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Sep 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 24 Sep 2016
Category Libraries
avatar chmst
chmst - comment - 24 Sep 2016

Tested successfully with different date formats.

avatar chmst
chmst - comment - 24 Sep 2016

Tested successfully with different date formats.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12164.

avatar chmst chmst - test_item - 24 Sep 2016 - Tested successfully
avatar chmst
chmst - comment - 24 Sep 2016

I have tested this item successfully on dad2591


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12164.

avatar zero-24 zero-24 - test_item - 24 Sep 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 24 Sep 2016

I have tested this item successfully on dad2591

?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12164.

avatar zero-24 zero-24 - change - 24 Sep 2016
Status Pending Ready to Commit
avatar zero-24 zero-24 - change - 24 Sep 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 25 Sep 2016
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
avatar rdeutz rdeutz - close - 25 Sep 2016
avatar rdeutz rdeutz - merge - 25 Sep 2016
avatar joomla-cms-bot joomla-cms-bot - change - 25 Sep 2016
Labels Added: ? ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 25 Sep 2016
Labels Added: ? ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 25 Sep 2016
Category Libraries Administration Components Installation Language & Strings

Add a Comment

Login with GitHub to post a comment