Browse Source

fixed date leading zero issue in hours/minutes

master
Petr Balashov 8 years ago
parent
commit
a1d8fedfed
  1. 4
      assets/scripts/iguana_api.js
  2. 618
      index.html

4
assets/scripts/iguana_api.js

@ -939,8 +939,8 @@ function secondsToString(seconds) {
year = a.getFullYear(),
month = months[a.getMonth()],
date = a.getDate(),
hour = a.getHours(),
min = a.getMinutes(),
hour = a.getHours() < 10 ? '0' + a.getHours() : a.getHours(),
min = a.getMinutes() < 10 ? '0' + a.getMinutes() : a.getMinutes(),
sec = a.getSeconds(),
time = date + ' ' + month + ' ' + year + ' ' + hour + ':' + min + ':' + sec;
return time;

618
index.html

File diff suppressed because it is too large
Loading…
Cancel
Save