Jump to content
thirty bees forum
  • 0

How can I change the locale for the Smarty date_format function ?



Hi guys,

might be a stupid question (I hope !) but I am unable to make french work with the Smarty date_format option on my server.

I've read everything about having to 'setLocale' in PHP before using it but it does not work ?

On my local setup (my OSX computer) it does work in french with the same ThirtyBees configs (french Canadian language pack with fr_CA locale code) without having to do anything.

I have the following locales installed on my linux server: enUS.utf8, frCA.utf8 and fr_FR.utf8 but using the setLocale does not work, maybe I am doing it wrong ? I tried to do it in my controller's initContent and it was a no go.

Please make me feel bad and prove me it was a simple fix ;-)

Thanks !

P.S. I am parsing a podcast feed and want to format the dates..

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...