From 2e36221018f91451af99d09287cff1e3e6e67f34 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 8 Jan 2023 16:36:48 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20de=20la=20migration=20quand=20l'heure?= =?UTF-8?q?=20est=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); } From ca860a02432b7d9c88d44155e0ce837caaf15f23 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 8 Jan 2023 16:37:38 +0100 Subject: [PATCH 2/2] Version 10.5.1 --- system.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system.json b/system.json index abc5afb5..e404b2ef 100644 --- a/system.json +++ b/system.json @@ -1,8 +1,8 @@ { "id": "foundryvtt-reve-de-dragon", "title": "RĂªve de Dragon", - "version": "10.5.0", - "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.5.0.zip", + "version": "10.5.1", + "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.5.1.zip", "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json", "compatibility": { "minimum": "10",