setlocale(LC_TIME, "ru_RU.CP1251"); $date = strftime("%d %B, %H:%M",strtotime($row['date']));
For some reason, if you use the code above, then everything seems ok, the date displays, but the month is still displayed in English: 26 May, 21:24
. If used:
setlocale(LC_TIME, "ru_RU"); $date = strftime("%d %B, %H:%M",strtotime($row['date']));
That date is clumsy: 26 јРЩ, 21:24
How to fix?