Update apps.md

This commit is contained in:
Julien Malik 2013-12-09 15:15:40 +01:00
parent de9e7aaab9
commit 0ccdd0b7f3

View file

@ -31,8 +31,8 @@ function timeConverter(UNIX_timestamp) {
var date = a.getDate(); var date = a.getDate();
var hour = a.getHours(); var hour = a.getHours();
var min = a.getMinutes(); var min = a.getMinutes();
if (hour == 0) { hour = '00'; } if (hour < 10) { hour = '0' + hour; }
if (min == 0) { min = '00'; } if (min < 10) { min = '0' + min; }
var time = date+' '+month+' '+year+' at '+hour+':'+min; var time = date+' '+month+' '+year+' at '+hour+':'+min;
return time; return time;
} }