Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#155 duration problem

1.3.x
open
Reini Urban
None
5
2012-10-11
2007-04-06
Erwann Penet
No

It seems that the setlocale function used in lib/config.php detects the language used in the page. Therefore, the duration problem when trying to save the access log to the database occurs on some of the PgsrcTranslation pages.

In order to solve this, I added a cast to string to the duration in lib/WikiDB/backend.php on line 628 like this:
(string) $entry->duration));

I am not sure whether this is the best way to do it. Maybe it would be more usefull to reset the locale to default using "setlocale(LC_ALL, NULL);", but I'm not sure when this would be most useful.

Discussion

  • Reini Urban
    Reini Urban
    2007-04-08

    Logged In: YES
    user_id=13755
    Originator: NO

    The cast is okay.
    But I have to check setlocale(LC_ALL, NULL)