Joomla 3.1 Category list date format

不羁的心 提交于 2019-12-12 02:58:04

问题


currently the date displayed in the page that uses category list is like this 31/05/13 .. how do i change it into Friday, 22 March 2013.. ive already tried changing the en-GB.ini file but to no avail.. btw..i use the blog layout


回答1:


Copy layouts/joomla/content/info_block/publish_date.php to templates/<your_template>/html/layouts/joomla/content/info_block/publish_date.php and edit as you like (you can copy modify_date.php and create_date.php as well). In your case it's sufficient to replace DATE_FORMAT_LC3 by DATE_FORMAT_LC1.




回答2:


Just use a Language Override

For Joomla 3.x Language Manager -> Overrides -> NEW Language Constant: DATE_FORMAT_LC3 Text: F j, Y

This would produce as an example October 23, 2013

Date formats info can be found at http://php.net/manual/en/function.date.php

For Joomla 2.5.x Language Constant is DATE_FORMAT_LC2




回答3:


Use the language override in Joomla 3+ to avoid conflicts in the future. Go to Extensions/Language Manager, then click the "Overrides" menu on the left. Once inside, click the "New" button on the top left, then perform a search for the date format. For blogs, I'm guessing you'll need to search for "DATE_FORMAT_LC3" in the search filter (right side of screen), but you may need to experiment. Edit the settings on the left once you've selected the appropriate field to edit, then click save. You'll probably want to change it to something like "l, d F Y" (don't use quotes). See http://php.net/manual/en/function.date.php for more possibilities.



来源:https://stackoverflow.com/questions/16975419/joomla-3-1-category-list-date-format

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!