|
@@ -818,7 +818,7 @@ function getCurrentDate(flg,con){
|
|
|
var h = myDate.getHours();
|
|
|
var m = myDate.getMinutes();
|
|
|
var s = myDate.getSeconds();
|
|
|
- date = year+link+(mon<10?"0"+mon:mon)+link+(day<10?"0"+day:day)+' '+(h<10?"0"+h:h)+':'+(m<10?"0"+m:m)+':'+(s<10?"0"+s:s);
|
|
|
+ date = year+link+(mon<10?"0"+mon:mon)+link+(day<10?"0"+day:day)+' '+(h<10&&h!=0?"0"+h:h)+':'+(m<10&&m!=0?"0"+m:m)+':'+(s<10&&s!=0?"0"+s:s);
|
|
|
}else{
|
|
|
date = year+link+(mon<10?"0"+mon:mon)+link+(day<10?"0"+day:day);
|
|
|
}
|
|
@@ -930,7 +930,7 @@ function dateParser(timestamp,link = '-'){
|
|
|
let minute = time.getMinutes();
|
|
|
let second = time.getSeconds();
|
|
|
// let result = year+link+month+link+date;
|
|
|
- let result = year+link+(month<10?"0"+month:month)+link+(date<10?"0"+date:date)+' '+(hour<10?"0"+hour:hour)+':'+(minute<10?"0"+minute:minute)+':'+(second<10?"0"+second:second);
|
|
|
+ let result = year+link+(month<10?"0"+month:month)+link+(date<10?"0"+date:date)+' '+(hour<10&&hour!=0?"0"+hour:hour)+':'+(minute<10&&minute!=0?"0"+minute:minute)+':'+(second<10&&second!=0?"0"+second:second);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -1178,7 +1178,7 @@ function getIds(data){
|
|
|
*/
|
|
|
function getCalendarDate(info) {
|
|
|
let conect = '-';
|
|
|
- let date = info.year + conect + (info.month < 10 ? '0' + info.month : info.month) + conect + (info.day < 10 ? '0' + info.day : info.day) + ' '+ (info.hour < 10 ? '0' + info.hour : info.hour)+':'+ (info.minute < 10 ? '0' + info.minute : info.minute)+':'+ (info.second < 10 ? '0' + info.second : info.second);
|
|
|
+ let date = info.year + conect + (info.month < 10 ? '0' + info.month : info.month) + conect + (info.day < 10 ? '0' + info.day : info.day) + ' '+ (info.hour < 10&&info.hour != 0 ? '0' + info.hour : info.hour)+':'+ (info.minute < 10&&info.minute != 0 ? '0' + info.minute : info.minute)+':'+ (info.second < 10&&info.second != 0 ? '0' + info.second : info.second);
|
|
|
return date;
|
|
|
}
|
|
|
|