[solved] Problem with localized date format

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
palun
Forum Members
Forum Members
Posts: 43
Joined: Sun Aug 02, 2009 9:08 am

[solved] Problem with localized date format

Post by palun »

I am trying to make a localized date format (for displaying in News), either like "10 maj" or like "10/5" (Swedish).

I do that by setting strftime (in global settings) to "%e %b" or "%e/%m", respectively.

- Instead of "10 maj" I get "10 May", in spite of the language being set to Swedish (in glogal settings).

- Instead of "10/5" I get "10/05". (Has to do with strftime, right? Always returning two digits. - Any simple workaround?)

Anyone knows what i am doing wrong? (I am using cmsms 1.7.1)

Many thanks!
/ulf

PS. I first posted this in the Swedish forum but realized it's not very active...
Last edited by palun on Thu Jun 24, 2010 11:10 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Problem with localized date format

Post by calguy1000 »

Locale settings like this have to be enabled by your host....
if you're using a US webhost for example, to try to display swedish pages they probably don't have the swedish locales installed on their server.

Nothing CMSMS can do about it.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
palun
Forum Members
Forum Members
Posts: 43
Joined: Sun Aug 02, 2009 9:08 am

Re: [solved] Problem with localized date format

Post by palun »

I am using XAMPP locally. Should have known. Sorry.
Many thanks!
/ulf
Post Reply

Return to “CMSMS Core”