I am struggling with the following code. It should display the current day of the week, date, month and year in French. I get the day, date and year just fine but the month is not displaying the right French characters;
[php]
date_default_timezone_set(‘America/Montreal’);
$date = date(“format”, $timestamp);
setlocale(LC_TIME, ‘fr_CA’);
echo strftime(’ %A %d %B %Y’);
[/php]
I tried this code but the wrong month is displayed, December not February.
[php]
$date_string = utf8_encode(strftime(’ %A %d %B %Y’, strtotime($post->post_date)));
[/php]
What am I missing here?