[mirotalksfu] - improve TZ add ms
هذا الالتزام موجود في:
@@ -19,6 +19,10 @@ module.exports = class Logger {
|
|||||||
this.timeStart = Date.now();
|
this.timeStart = Date.now();
|
||||||
this.timeEnd = null;
|
this.timeEnd = null;
|
||||||
this.timeElapsedMs = null;
|
this.timeElapsedMs = null;
|
||||||
|
this.tmOptions = {
|
||||||
|
timeZone: process.env.TZ || config.console.timeZone || 'UTC',
|
||||||
|
hour12: false,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
debug(msg, op = '') {
|
debug(msg, op = '') {
|
||||||
@@ -60,10 +64,9 @@ module.exports = class Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getDateTime() {
|
getDateTime() {
|
||||||
const options = {
|
const currentTime = new Date().toLocaleString('en-US', this.tmOptions);
|
||||||
timeZone: process.env.TZ || config.console.timeZone || 'UTC',
|
const milliseconds = String(new Date().getMilliseconds()).padStart(3, '0');
|
||||||
};
|
return colors.cyan(`${currentTime}:${milliseconds}`);
|
||||||
return colors.cyan(new Date().toLocaleString('en-US', options));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getFormatTime(ms) {
|
getFormatTime(ms) {
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم