forked from mirrors/pronouns.cc
fix: use zero time if user has not exported their data before
This commit is contained in:
parent
1843f58d96
commit
a1d3431770
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
const createdAt = data.exportData?.created_at
|
||||
? DateTime.fromISO(data.exportData.created_at).toLocal()
|
||||
: DateTime.now();
|
||||
: DateTime.fromSeconds(0);
|
||||
const now = DateTime.now().toLocal();
|
||||
|
||||
const availableFor = Duration.fromObject({ days: 7 });
|
||||
|
|
Loading…
Reference in a new issue