Have you tried executing setlocale() function before strftime()? For example
setlocale('LC_TIME','finnish');
echo strftime("%V");
I haven't test this without setlocale(), so I can't be sure if this is a solution.
.mika
Arnaud Chazoule wrote:
Portability Problem with strftime()
This is a part of my code that run very well under linux :
//day of week
$joursemaine = strftime("%u");
echo "valo de joursemaine : $joursemaine ";
// week of year
$semaine = strftime("%V");
$semaine_max = $semaine;
echo "valo de semaine : $semaine ";
It doesn't match when this code run with php4 for Windows 2000.
They are a problem with options %u and %V when i use strftime().
But for another option with strftime(), i obtain goods results.
Arnaud.