I\'m working on a site where the user can switch between English and French. To output the date of posts.
If the user chooses French I use:
setlocale
I think you can use the function:
echo utf8_encode(strftime('%d %B %Y', strtotime($post->post_date)))