diff --git a/views/element/about.php b/views/element/about.php index 2abba67407d09de205e609788f4f188b4ac88305..61d725240dde07dd06824659ee38388c2eafe42d 100755 --- a/views/element/about.php +++ b/views/element/about.php @@ -999,9 +999,13 @@ function redirigerVersPage(url) { $("#endDateAbout").html(moment(contextData.endDateDB).local().locale(mainLanguage).format(formatDateView)); - if(notEmpty(contextData.birthDate)) - $("#birthDateAbout").html(moment(contextData.birthDate).local().locale(mainLanguage).format("DD/MM/YYYY")); - + if(notEmpty(contextData.birthDate)){ + let birthD = new Date(contextData.birthDate.sec*1000); + if(typeof contextData.birthDate == "string"){ + birthD = new Date(contextData.birthDate); + } + $("#birthDateAbout").html(birthD.toLocaleDateString()); + } if ($("#birthDate").html() != "") $("#birthDate").html(moment($("#birthDate").html()).local().locale(mainLanguage).format("DD/MM/YYYY")); $('#dateTimezone').attr('data-original-title', "Fuseau horaire : GMT " + moment().local().format("Z"));