Remix.run Logo
Bratmon 4 hours ago

Doesn't that just turn bugs in test in n years into bugs in prod in n years?

That seems like a downgrade to me!

loeg 3 hours ago | parent [-]

No, because prod doesn't have hardcoded cookies baked into it?

AndrewDucker 3 hours ago | parent [-]

If you always test with a date of 1/1/2000 then you don't know that your choice fails in 2039.

vocx2tx 2 hours ago | parent [-]

These fake-time environments let you set the time, so you can test how the code will behave in 2039 without waiting for 13 years. For Go's synctest, 1-1-2000 is just the default initial value for now().