Best place for date/time setting

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
markr
New Member
New Member
Posts: 5
Joined: Mon Nov 27, 2006 2:18 pm

Best place for date/time setting

Post by markr »

I am writing some small enhancements for the Forum Made Easy module. Besides clean URL's, I want to make the date-time format in the proper locale. But it doesn't seem to be a setting in the core (strange!). Also, I don't like the idea that it is a setting local for each module (the News module does have a date-format setting).

I consider using lang/*.php for this, as these are locales in fact. For example:
  $lang['date_time_format'] = '%m-%d-%y %m:%h %a'; // or something that works ;)

Anyone an opinion what the best way is for storing the date/time format string?

Mark
Post Reply

Return to “Modules/Add-Ons”