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); }