diff --git a/administrator/components/com_banners/views/tracks/tmpl/default.php b/administrator/components/com_banners/views/tracks/tmpl/default.php index 5d2d96235fff2..a41d327614272 100644 --- a/administrator/components/com_banners/views/tracks/tmpl/default.php +++ b/administrator/components/com_banners/views/tracks/tmpl/default.php @@ -76,7 +76,7 @@ count; ?> - track_date, JText::_('DATE_FORMAT_LC4') . ' H:i'); ?> + track_date, JText::_('DATE_FORMAT_LC5')); ?> diff --git a/administrator/components/com_contenthistory/models/compare.php b/administrator/components/com_contenthistory/models/compare.php index 679d2cd7df5f0..8221ec7e861f4 100644 --- a/administrator/components/com_contenthistory/models/compare.php +++ b/administrator/components/com_contenthistory/models/compare.php @@ -76,7 +76,7 @@ public function getItems() $object->version_note = $table->version_note; // Let's use custom calendars when present - $object->save_date = JHtml::_('date', $table->save_date, 'Y-m-d H:i:s'); + $object->save_date = JHtml::_('date', $table->save_date, JText::_('DATE_FORMAT_LC6')); $dateProperties = array ( 'modified_time', @@ -92,7 +92,7 @@ public function getItems() { if (array_key_exists($dateProperty, $object->data) && $object->data->$dateProperty->value != '0000-00-00 00:00:00') { - $object->data->$dateProperty->value = JHtml::_('date', $object->data->$dateProperty->value, 'Y-m-d H:i:s'); + $object->data->$dateProperty->value = JHtml::_('date', $object->data->$dateProperty->value, JText::_('DATE_FORMAT_LC6')); } } diff --git a/administrator/components/com_contenthistory/models/preview.php b/administrator/components/com_contenthistory/models/preview.php index a7cf8d1b011e5..267aafa53a459 100644 --- a/administrator/components/com_contenthistory/models/preview.php +++ b/administrator/components/com_contenthistory/models/preview.php @@ -68,7 +68,7 @@ public function getItem() $result->data = ContenthistoryHelper::prepareData($table); // Let's use custom calendars when present - $result->save_date = JHtml::_('date', $table->save_date, 'Y-m-d H:i:s'); + $result->save_date = JHtml::_('date', $table->save_date, JText::_('DATE_FORMAT_LC6')); $dateProperties = array ( 'modified_time', @@ -84,7 +84,7 @@ public function getItem() { if (array_key_exists($dateProperty, $result->data) && $result->data->$dateProperty->value != '0000-00-00 00:00:00') { - $result->data->$dateProperty->value = JHtml::_('date', $result->data->$dateProperty->value, 'Y-m-d H:i:s'); + $result->data->$dateProperty->value = JHtml::_('date', $result->data->$dateProperty->value, JText::_('DATE_FORMAT_LC6')); } } diff --git a/administrator/components/com_contenthistory/views/history/tmpl/modal.php b/administrator/components/com_contenthistory/views/history/tmpl/modal.php index 8f49b1a70bbc6..4dc45a3c1fec2 100644 --- a/administrator/components/com_contenthistory/views/history/tmpl/modal.php +++ b/administrator/components/com_contenthistory/views/history/tmpl/modal.php @@ -147,7 +147,7 @@ - save_date, 'Y-m-d H:i:s'); ?> + save_date, JText::_('DATE_FORMAT_LC6')); ?> sha1_hash == $hash) : ?>   diff --git a/administrator/components/com_messages/views/message/tmpl/default.php b/administrator/components/com_messages/views/message/tmpl/default.php index a77e332083c91..6b3a8065ce640 100644 --- a/administrator/components/com_messages/views/message/tmpl/default.php +++ b/administrator/components/com_messages/views/message/tmpl/default.php @@ -27,7 +27,7 @@
- item->date_time); ?> + item->date_time, JText::_('DATE_FORMAT_LC2')); ?>
diff --git a/administrator/components/com_users/views/notes/tmpl/modal.php b/administrator/components/com_users/views/notes/tmpl/modal.php index 83eb1de0e9330..b810c3ed9da4b 100644 --- a/administrator/components/com_users/views/notes/tmpl/modal.php +++ b/administrator/components/com_users/views/notes/tmpl/modal.php @@ -28,7 +28,7 @@
- created_time, 'D d M Y H:i'); ?> + created_time, JText::_('DATE_FORMAT_LC2')); ?>
cparams->get('image'); ?> diff --git a/administrator/components/com_users/views/users/tmpl/default.php b/administrator/components/com_users/views/users/tmpl/default.php index 56a930ec56631..8662c067d4a11 100644 --- a/administrator/components/com_users/views/users/tmpl/default.php +++ b/administrator/components/com_users/views/users/tmpl/default.php @@ -150,13 +150,13 @@ lastvisitDate != $this->db->getNullDate()) : ?> - lastvisitDate, 'Y-m-d H:i:s'); ?> + lastvisitDate, JText::_('DATE_FORMAT_LC6')); ?> - registerDate, 'Y-m-d H:i:s'); ?> + registerDate, JText::_('DATE_FORMAT_LC6')); ?> id; ?> diff --git a/administrator/language/en-GB/en-GB.ini b/administrator/language/en-GB/en-GB.ini index 1278d2707f9e3..b4078de2faa2d 100644 --- a/administrator/language/en-GB/en-GB.ini +++ b/administrator/language/en-GB/en-GB.ini @@ -963,6 +963,7 @@ DATE_FORMAT_LC2="l, d F Y H:i" DATE_FORMAT_LC3="d F Y" DATE_FORMAT_LC4="Y-m-d" DATE_FORMAT_LC5="Y-m-d H:i" +DATE_FORMAT_LC6="Y-m-d H:i:s" DATE_FORMAT_JS1="y-m-d" DATE_FORMAT_CALENDAR_DATE="%Y-%m-%d" DATE_FORMAT_CALENDAR_DATETIME="%Y-%m-%d %H:%M:%S" diff --git a/administrator/templates/hathor/html/com_banners/tracks/default.php b/administrator/templates/hathor/html/com_banners/tracks/default.php index e131f137ecf53..9d6c035fa92e2 100644 --- a/administrator/templates/hathor/html/com_banners/tracks/default.php +++ b/administrator/templates/hathor/html/com_banners/tracks/default.php @@ -113,7 +113,7 @@ count;?> - track_date, JText::_('DATE_FORMAT_LC4').' H:i');?> + track_date, JText::_('DATE_FORMAT_LC5'));?> diff --git a/administrator/templates/hathor/html/com_contenthistory/history/modal.php b/administrator/templates/hathor/html/com_contenthistory/history/modal.php index 164ba8664cbce..e459baf4589e2 100644 --- a/administrator/templates/hathor/html/com_contenthistory/history/modal.php +++ b/administrator/templates/hathor/html/com_contenthistory/history/modal.php @@ -142,7 +142,7 @@ - save_date, 'Y-m-d H:i:s'); ?> + save_date, JText::_('DATE_FORMAT_LC6')); ?> sha1_hash == $hash) :?>   diff --git a/administrator/templates/hathor/html/com_users/users/default.php b/administrator/templates/hathor/html/com_users/users/default.php index 2c930763bbb9d..5b96c11570579 100644 --- a/administrator/templates/hathor/html/com_users/users/default.php +++ b/administrator/templates/hathor/html/com_users/users/default.php @@ -191,13 +191,13 @@ lastvisitDate != $this->db->getNullDate()) : ?> - lastvisitDate, 'Y-m-d H:i:s'); ?> + lastvisitDate, JText::_('DATE_FORMAT_LC6')); ?> - registerDate, 'Y-m-d H:i:s'); ?> + registerDate, JText::_('DATE_FORMAT_LC6')); ?> id; ?> diff --git a/components/com_users/views/profile/tmpl/default_core.php b/components/com_users/views/profile/tmpl/default_core.php index 2ffff33a1118a..a5bbd19823325 100644 --- a/components/com_users/views/profile/tmpl/default_core.php +++ b/components/com_users/views/profile/tmpl/default_core.php @@ -31,14 +31,14 @@
- data->registerDate); ?> + data->registerDate, JText::_('DATE_FORMAT_LC1')); ?>
data->lastvisitDate != $this->db->getNullDate()) : ?>
- data->lastvisitDate); ?> + data->lastvisitDate, JText::_('DATE_FORMAT_LC1')); ?>
diff --git a/language/en-GB/en-GB.ini b/language/en-GB/en-GB.ini index 288f825f27e6d..652d721b2ea84 100644 --- a/language/en-GB/en-GB.ini +++ b/language/en-GB/en-GB.ini @@ -318,6 +318,7 @@ DATE_FORMAT_LC2="l, d F Y H:i" DATE_FORMAT_LC3="d F Y" DATE_FORMAT_LC4="Y-m-d" DATE_FORMAT_LC5="Y-m-d H:i" +DATE_FORMAT_LC6="Y-m-d H:i:s" DATE_FORMAT_JS1="y-m-d" DATE_FORMAT_CALENDAR_DATE="%Y-%m-%d" DATE_FORMAT_CALENDAR_DATETIME="%Y-%m-%d %H:%M:%S"