@character-foundry/character-foundry 0.1.9-dev.1765933569 → 0.1.9-dev.1765936444

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/loader.js CHANGED
@@ -7710,8 +7710,10 @@ function voxtaToCCv3(character, books) {
7710
7710
  };
7711
7711
  }
7712
7712
  }
7713
- const creationDate = character.DateCreated ? Math.floor(new Date(character.DateCreated).getTime() / 1e3) : void 0;
7714
- const modificationDate = character.DateModified ? Math.floor(new Date(character.DateModified).getTime() / 1e3) : void 0;
7713
+ const rawCreationDate = character.DateCreated ? Math.floor(new Date(character.DateCreated).getTime() / 1e3) : void 0;
7714
+ const rawModificationDate = character.DateModified ? Math.floor(new Date(character.DateModified).getTime() / 1e3) : void 0;
7715
+ const creationDate = rawCreationDate !== void 0 && rawCreationDate >= 0 ? rawCreationDate : void 0;
7716
+ const modificationDate = rawModificationDate !== void 0 && rawModificationDate >= 0 ? rawModificationDate : void 0;
7715
7717
  const card = {
7716
7718
  spec: "chara_card_v3",
7717
7719
  spec_version: "3.0",