Firefox PHP

Readable Dates module

Posted by Maurice Makaay 
Re: Readable Dates module
February 08, 2006 06:06AM
An additional question: Is the time displayed correctly if you select "Default" for you timezone in the user control center?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Readable Dates module
February 09, 2006 11:15PM
Hi Maurica, It works fine when its sets to the "default" in the users control panel.
Re: Readable Dates module
February 10, 2006 04:28AM
Okay, I'll have to dive into this to find out how things get weird. If I select my own timezone in the user control (GMT+1:00), I cannot reproduce the problem. Somehow it looks like your server's timezone is not taken into account in the computations. Anyway, I'll try to come up with a fix.

On what OS is your Phorum running?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Readable Dates module
February 10, 2006 03:03PM
Ok, Thank you.
Re: Readable Dates module
February 24, 2006 11:48AM
Did you get it to work?

Or does this module only work with 5.1?

(I'm running 5.0.21)
Re: Readable Dates module
February 24, 2006 01:33PM
the 5th message in this thread already tells that its 5.1-only.


Thomas Seifert
Re: Readable Dates module
February 28, 2006 07:26PM
I think I have now fixed the TZ handling problem, in case a user has set a timezone in the control panel. Could you try out if the updated module does work for you now? It can be found in the first message of this thread.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Readable Dates module
March 01, 2006 06:29AM
Hi Maurice,

I've tested the mods and i have a bug.
When i choice "Format dates on read page" i don't have a readable date but the english format date.
My forum is in french.

It's ok for lits pages and index forum.

PS : I didn't try with another timezone.
Re: Readable Dates module
March 01, 2006 08:02AM
You system must support the locale that is in your language file. I had the same problem on my system with Dutch a while ago. What I did do on my Trustix Linux system was the following:

To enable the locale nl_NL that I needed:
1) edit /etc/locales.conf
2) enable nl_NL in there
3) run /usr/sbin/locales-gen to generate the locales

After that I told Phorum to use this locale:
1) edit include/lang/dutch.php
2) change the locale variable from "NL" to "nl_NL"

The combination of these two made the dates Dutch for me. This shouldn't be something that is influenced by the readable dates module I think. In the end I let Phorum do the formatting of the date. Phorum will set the LC_TIME locale parameter to the locale that is in your language file. After that a PHP function is called to do the formatting. So I asume that your dates are in english too when disabling the readable dates module. Please try if this assertion is right.

What I see in the distributed french language file on this site, is that the translation already contains:

PHORUM['locale']="fr_FR";

If you use that too, then probably the system on which you are running does not support the fr_FR locale.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Readable Dates module
March 01, 2006 08:21AM
Yep,
I have PHORUM['locale']="fr_FR";

The problem is only on read page.
Sorry, only registered users may post in this forum.

Click here to login