From 1a54a758f5e3c916caff096c514e173ccd8502fd Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Mon, 9 Dec 2013 15:14:36 +0100 Subject: [PATCH] Update apps_fr.md --- apps_fr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps_fr.md b/apps_fr.md index e9441ee3..ca4266c1 100644 --- a/apps_fr.md +++ b/apps_fr.md @@ -32,8 +32,8 @@ function timeConverter(UNIX_timestamp) { var date = a.getDate(); var hour = a.getHours(); var min = a.getMinutes(); - if (hour == 0) { hour = '00'; } - if (min == 0) { min = '00'; } + if (hour < 10) { hour = '0' + hour; } + if (min < 10) { min = '0' + min; } var time = date+' '+month+' '+year+' at '+hour+':'+min; return time; }