Readable Dates module
Posted by Maurice Makaay
Re: Readable Dates module February 08, 2006 06:06AM |
Admin Registered: 19 years ago Posts: 8,532 |
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
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Readable Dates module February 09, 2006 11:15PM |
Registered: 19 years ago Posts: 45 |
Re: Readable Dates module February 10, 2006 04:28AM |
Admin Registered: 19 years ago Posts: 8,532 |
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
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 |
Registered: 19 years ago Posts: 45 |
Re: Readable Dates module February 24, 2006 11:48AM |
Registered: 18 years ago Posts: 13 |
Re: Readable Dates module February 24, 2006 01:33PM |
Admin Registered: 21 years ago Posts: 9,240 |
Re: Readable Dates module February 28, 2006 07:26PM |
Admin Registered: 19 years ago Posts: 8,532 |
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
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Readable Dates module March 01, 2006 06:29AM |
Registered: 19 years ago Posts: 117 |
Re: Readable Dates module March 01, 2006 08:02AM |
Admin Registered: 19 years ago Posts: 8,532 |
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
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 |
Registered: 19 years ago Posts: 117 |
Sorry, only registered users may post in this forum.