? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
15 Feb 2018

I noticed that in some places we are formatting the date manually eg
<?php echo JHtml::_('date', $item->created_time, 'D d M Y H:i'); ?>

Or modifying the date format
<?php echo JHtml::_('date', $item->track_date, JText::_('DATE_FORMAT_LC4') . ' H:i'); ?>

Or not specifying a date format
<?php echo JHtml::_('date', $this->item->date_time); ?>

This PR corrects that so that

  • instead of hard coding the date we use an existing one OR the new DATE_FORMAT_LC6
  • instead of modifying a date format we use an existing one that does the same thing
  • a date format is always specified

This will ensure that ALL the dates can be localised in a consistent manner throughout Joomla

d45dbe8 15 Feb 2018 avatar brianteeman LC6
avatar brianteeman brianteeman - open - 15 Feb 2018
avatar brianteeman brianteeman - change - 15 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Feb 2018
Category Administration com_banners com_content com_contenthistory com_messages com_users Language & Strings Templates (admin) Front End
avatar Bakual
Bakual - comment - 15 Feb 2018

Just a thought regarding the new DATE_FORMAT_LC6. Do we really need to show the seconds in com_contenthistory and com_users or would it be sufficient to just show the minute with the existing string DATE_FORMAT_LC5?
Imho the seconds don't add real value to the datetime, minutes would be enough to show.

avatar brianteeman
brianteeman - comment - 15 Feb 2018

@Bakual perhaps not but i wanted to ensure full b/c

avatar Bakual
Bakual - comment - 15 Feb 2018

It would be more consistent with other places were we also don't show the seconds and it would use a little less space. Also I don't think, showing the seconds is covered by our B/C promise ?

avatar brianteeman
brianteeman - comment - 15 Feb 2018

i just wanted to avoid anyone comments about changes - and get this simple pr merged without lots of silly debate. guess i failed

avatar Bakual
Bakual - comment - 15 Feb 2018

Go ahead. If you think it's worth showing the seconds I wont question it further.

avatar Quy
Quy - comment - 15 Feb 2018

I have tested this item successfully on ba45527


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

avatar Quy Quy - test_item - 15 Feb 2018 - Tested successfully
avatar FPerisa
FPerisa - comment - 9 Mar 2018

I have tested this item successfully on ba45527


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

avatar FPerisa FPerisa - test_item - 9 Mar 2018 - Tested successfully
avatar Quy Quy - change - 9 Mar 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 9 Mar 2018

RTC


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

avatar mbabker mbabker - change - 17 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-17 15:16:38
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 17 Mar 2018
avatar mbabker mbabker - merge - 17 Mar 2018
avatar brianteeman
brianteeman - comment - 17 Mar 2018

thanks

Add a Comment

Login with GitHub to post a comment