Fix timezone

pull/2325/head
Jérémy Rialland 2022-10-06 17:27:03 +02:00 committed by Jérémy Rialland
parent 3040ec9ab6
commit 8ad7d94c81
3 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,7 @@ if (badJob >= 0) {
const bree = new Bree({
root: join(__dirname, 'jobs'),
defaultExtension: NODE_ENV === 'production' ? 'js' : 'ts',
timezone: 'Europe/Paris',
jobs,
})

View File

@ -28,6 +28,7 @@ const nextDayStandup = nextDayMember
const now = new Date()
.toLocaleTimeString('fr', {
timeZone: 'Europe/Paris',
hour: '2-digit',
minute: '2-digit',
})

View File

@ -55,6 +55,7 @@ const nextStandupOrder = botConfig.standupDays
const now = new Date()
.toLocaleTimeString('fr', {
timeZone: 'Europe/Paris',
hour: '2-digit',
minute: '2-digit',
})