Closed
Description
This code using KSUID32 fails:
idgen.fromEpoch(new Date("2089-01-01").getTime())
It throws at https://github.com/aelr/umbrella/blob/develop/packages/ksuid/src/aksuid.ts#L77:
assert(t >= 0, "configured base epoch must be in the past");
For this specific case, t = -2139591296
Also, should the error message be, "configured base epoch must not be in the past"?
Metadata
Metadata
Assignees
Labels
No labels