Skip to content

Commit f38cee6

Browse files
committed
fix: date conversion expects a ISO date string, not a unix timestamp
1 parent b38b2c4 commit f38cee6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frontend/src/app/core/utils/candid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ export function fromCandidOptDate(value: [] | [string]): Date | null {
2121
}
2222

2323
export function fromCandidDate(value: string): Date {
24-
return new Date(Number(value));
24+
return new Date(value);
2525
}

0 commit comments

Comments
 (0)