Manomite
Manomite13mo ago

How does convex handle date timezone.

How does convex handle date timezone. If using the new Date() function how does it know the actual timezone time to use... Or will I have to pass the timezone to it
2 Replies
pipsai
pipsai13mo ago
following this until they update. So far I have just passed it as string then pass the time zone. "YYYY-MM-DD" and time zone as another entry
lee
lee13mo ago
the new Date(...) function only supports a single argument, which must be a number, which is an epoch timestamp (also it accepts zero arguments to get current date). We may expand this to strings with specified time zones, but that is not yet supported.

Did you find this page helpful?