|
Re: Time question [message #2215 is a reply to message #2212] |
Mon, 06 May 2002 09:46 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hi, it seems that there is something missing in one of ur templates. U should take a look at ur msg file (hidden directory -> templates -> i18n -> english -> msg) and look for the following string:
welcome_message: Welcome <b>{VAR: user_login}</b>, your last visit was on {DATE: last_login %a, %d %B %G %H:%M} I suspect the "%" is missing in the string. HTH bye Ken
[Updated on: Mon, 06 May 2002 09:47] Report message to a moderator
|
|
|
|
Re: Time question [message #2226 is a reply to message #2222] |
Mon, 06 May 2002 14:35 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Very unusual, could you please tell which version of PHP you are running.
FUDforum Core Developer
|
|
|
|
Re: Time question [message #2235 is a reply to message #2227] |
Mon, 06 May 2002 16:26 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I was actually refering to the version of your PHP. You can find it out by going to the "System Info" admin panel.
Also could you please tell me what did you change your date settings to in the admin control panel.
Thanks.
FUDforum Core Developer
|
|
|
|
Re: Time question [message #2244 is a reply to message #2240] |
Mon, 06 May 2002 17:36 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Can you please try to following code:
<?php echo "Normal Date: ".date("Y")."<br>\n"; echo "LOCALE Date: ".strftime("%G")."<br>\n";
echo "<br>\nWith changed TZ<br>\n";
putenv("TZ=America/Catamarca");
echo "Normal Date: ".date("Y")."<br>\n"; echo "LOCALE Date: ".strftime("%G")."<br>\n";
?>
I suspect the problem occured because BSDI doesn't support certain timezones listed in the forum and when you changed your timezone to that one the year got messed up. I will try to see if I can find the list of timezones supported by BSDI.
If you can, could you do execute "ls -lia /usr/share/zoneinfo" and send me the output.
Thanks.
FUDforum Core Developer
|
|
|
|
Re: Time question [message #2277 is a reply to message #2257] |
Tue, 07 May 2002 03:55 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Finally tracked down the time problem. Apparently some C libraries do not support the %G option for the strftime function, which formats time according to locale settings. To avoid this problem I changed %G to %Y, which should solve the problem.
FUDforum Core Developer
|
|
|
|
Re: Time question [message #2309 is a reply to message #2305] |
Tue, 07 May 2002 15:29 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Okie... since A LOT of files are affected the best way to fix the problem is to follow those 3 steps:
1) Go to the forum's data directory 2) run perl -p -i -e 's/%G/%Y/g' template/tmpl/*.tmpl template/src/*.t template/i18n/english/msg 3) "Rebuild Templates" using the admin control panel
The 1.9.8 forum that will come out today will already have this fix in it.
FUDforum Core Developer
|
|
|
|
|
|
Re: Time question [message #2317 is a reply to message #2314] |
Tue, 07 May 2002 17:22 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
esm2002 wrote on Tue, 07 May 2002 1:07 PM | sorry about the extra work you had to do but I'm sure you learned something and that will make this an even better product!!!
|
Definately, it is a good thing you've come across this bug and even a better thing another person had come across it in another OS. It certainly was a very hard to track down bug. But in the end it worth finding out about
FUDforum Core Developer
|
|
|