fix style height when rotating + move cookie util to their specific file

This commit is contained in:
Hamidreza Ghavami
2023-05-08 18:04:12 +04:30
parent 00777e3a25
commit d137deccfa
6 changed files with 89 additions and 80 deletions

View File

@@ -128,14 +128,13 @@ Date.prototype.formatDateTime = function (split = ' ') {
};
class DateUtil {
// 字符串转 Date 对象
static parseDate(str) {
return new Date(str.replace(/-/g, '/'));
}
static formatMillis(millis) {
return moment(millis).format('YYYY-M-D H:m:s')
return moment(millis).format('YYYY-M-D H:m:s');
}
static firstDayOfMonth() {
@@ -144,4 +143,4 @@ class DateUtil {
date.setMinTime();
return date;
}
}
}