@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/voxta.js CHANGED
@@ -7092,8 +7092,10 @@ function voxtaToCCv3(character, books) {
7092
7092
  };
7093
7093
  }
7094
7094
  }
7095
- const creationDate = character.DateCreated ? Math.floor(new Date(character.DateCreated).getTime() / 1e3) : void 0;
7096
- const modificationDate = character.DateModified ? Math.floor(new Date(character.DateModified).getTime() / 1e3) : void 0;
7095
+ const rawCreationDate = character.DateCreated ? Math.floor(new Date(character.DateCreated).getTime() / 1e3) : void 0;
7096
+ const rawModificationDate = character.DateModified ? Math.floor(new Date(character.DateModified).getTime() / 1e3) : void 0;
7097
+ const creationDate = rawCreationDate !== void 0 && rawCreationDate >= 0 ? rawCreationDate : void 0;
7098
+ const modificationDate = rawModificationDate !== void 0 && rawModificationDate >= 0 ? rawModificationDate : void 0;
7097
7099
  const card = {
7098
7100
  spec: "chara_card_v3",
7099
7101
  spec_version: "3.0",