erquhartE
Convex Community2y ago
24 replies
erquhart

convex-test handling dates differently than convex runtime

I've encountered the following two so far:
- local timezone is used instead of UTC (this is a big one)
- Date.prototype.toString() and Date.prototype.toISOString() both work as expected (timezone aside), but when a Date is coerced to a string without directly calling one of these methods, the mock test environment seems to use toISOString(), whereas the convex runtime correctly produces the result of toString().
Was this page helpful?