Jump to content

problem with setlocale(LC_TIME, "ru");


pdkv2

Recommended Posts

Hi all,

 

whenever i try to set the locale to russian "ru" and prints the date with the invalid characters for month

please see the code below

setlocale(LC_TIME, "ru");
$dt = strftime("%b %d %Y", mktime(0, 0, 0,5, 20, 2009));
echo $dt;

this gives output "??? 20 2009"

 

but if i change the locale to en, jp, de etc all those gives correct output "May 20 2009"

 

Thanks,

Sharad.

Link to comment
https://forums.phpfreaks.com/topic/158862-problem-with-setlocalelc_time-ru/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.