Jump to content

how to change the date format


hameedacpa

Recommended Posts

Posted

It gets set automatically depending on the locale of the user. Which has caused a lot of debate because it leads to craziness such as AM/PM being shown in some locales and 24 hour clock in others even though that's a personal preference rather than country specific. Personally I want all dates to be set to a global standard along the lines of "Tue, 23 Jun 2015 13:00" because it's at least completely unambiguous. Everyone will have an opinion on this one :) 

Anyway, @Mark was kind enough to knock up a plugin that allows some customization of the dates. I've just starting using it myself :) 

The string "%a, %d %b %Y" works greats with that plugin.

Posted

Actually, rereading the thread above I think something is wrong. If the board is supposed to show the date/time in the user's locale then it's not working. My locale is UK and I've tried on three browsers and all the dates on this board are showing in USA format. Can anyone confirm?

Reading again, it looks like the locale is hardcoded by the language pack and not detected at all. So the default language pack is USA so you get USA times. If you want UK times you have to create a UK language pack and then set the locale in that pack to UK and then the user has to manually pick the language pack (it didn't autoselect when I just tested it, it still used the default USA one).

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...