[mirotalksfu] - add timeZone in config

هذا الالتزام موجود في:
Miroslav Pejic
2024-02-22 12:41:00 +01:00
الأصل f5aa140cdf
التزام 0d152c13a1
3 ملفات معدلة مع 5 إضافات و3 حذوفات

عرض الملف

@@ -61,7 +61,7 @@ module.exports = class Logger {
getDateTime() { getDateTime() {
const options = { const options = {
timeZone: process.env.TZ || 'UTC', timeZone: process.env.TZ || config.console.timeZone || 'UTC',
}; };
return colors.cyan(new Date().toLocaleString('en-US', options)); return colors.cyan(new Date().toLocaleString('en-US', options));
} }

عرض الملف

@@ -195,6 +195,10 @@ module.exports = {
}, },
}, },
console: { console: {
/*
timeZone: Time Zone corresponding to timezone identifiers from the IANA Time Zone Database es 'Europe/Rome' default UTC
*/
timeZone: 'UTC',
debug: true, debug: true,
colors: true, colors: true,
}, },

عرض الملف

@@ -9,8 +9,6 @@ services:
container_name: mirotalksfu container_name: mirotalksfu
hostname: mirotalksfu hostname: mirotalksfu
restart: unless-stopped restart: unless-stopped
# environment:
# - TZ=Europe/Rome
volumes: volumes:
- ./app/src/config.js:/src/app/src/config.js:ro - ./app/src/config.js:/src/app/src/config.js:ro
# These volume is mandatory if server.recording.enabled in the app/src/config.js # These volume is mandatory if server.recording.enabled in the app/src/config.js