From 2e36221018f91451af99d09287cff1e3e6e67f34 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 8 Jan 2023 16:36:48 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20de=20la=20migration=20quand=20l'heure=20e?= =?UTF-8?q?st=20=C3=A0=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rdd-timestamp.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/rdd-timestamp.js b/module/rdd-timestamp.js index 37ec8504..d9ca9b80 100644 --- a/module/rdd-timestamp.js +++ b/module/rdd-timestamp.js @@ -99,7 +99,7 @@ export class RdDTimestamp { return `${signe.label}` } - static handleTimestampEditor(html, path, consumeTimestamp = async (path, timestamp) => {}) { + static handleTimestampEditor(html, path, consumeTimestamp = async (path, timestamp) => { }) { const fields = { annee: html.find(`input[name="${path}.annee"]`), mois: html.find(`select[name="${path}.mois"]`), @@ -157,14 +157,13 @@ export class RdDTimestamp { static getWorldTime() { let worldTime = game.settings.get(SYSTEM_RDD, WORLD_TIMESTAMP_SETTING); - if (worldTime.indexJour && worldTime.heureRdD) { + if (worldTime.indexJour != undefined && worldTime.heureRdD != undefined) { // Migration worldTime = { indexDate: worldTime.indexJour, indexMinute: worldTime.heureRdD * 120 + worldTime.minutesRelative }; RdDTimestamp.setWorldTime(new RdDTimestamp(worldTime)) - } return new RdDTimestamp(worldTime); }