Fix de la migration quand l'heure est à 0

This commit is contained in:
Vincent Vandemeulebrouck 2023-01-08 16:36:48 +01:00
parent 07e203513a
commit 2e36221018

View File

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