I get a $date
from an API in UTC format like 2021-11-13T14:00:14Z
.
So using php I convert it to : 13 November 2021
$date = strftime(date('d F Y', strtotime($date);
So now I want to translate it in French.
I am working on local with on macbook pro using MAMP.
My html code setting is :
<html lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I even forced Local Time to :
setlocale(LC_TIME, 'fr', 'fr_FR', 'fr_FR@euro', 'fr_FR.utf8', 'fr-FR', 'fra'); date_default_timezone_set('Europe/Paris');
But the date remain in english !
Thanks in advance for your help