adam
CCConvex Community
•Created by adam on 3/27/2025 in #support-community
Convex dashboard timestamp milliseconds
Ah yes. Does it add any value for queries and mutations?
9 replies
CCConvex Community
•Created by adam on 3/25/2025 in #support-community
Convex function logging
Some sort of
finally
handler would be useful. I don't understand the concept of "flush" calls though.10 replies
CCConvex Community
•Created by adam on 3/27/2025 in #support-community
Convex dashboard timestamp milliseconds
Would adding a millisecond to timestamp actually remove the need for this drill down slide out panel? Assuming all the logs have the exact same timestamp that were part of the request/transaction? is "request" and "transaction" the same thing btw?
9 replies
CCConvex Community
•Created by adam on 3/25/2025 in #support-community
Convex function logging
It seems being able to easily log the return value would be the main thing. Could this be done using my own middleware?
10 replies
CCConvex Community
•Created by adam on 3/25/2025 in #support-community
Convex function logging
Thanks. I already do these suggestions. It’s probably my most common logging requirement, to see the inputs and outputs of a functions. Having it at the platform level would just make the dev experience all the more impressive.
10 replies
CCConvex Community
•Created by adam on 3/25/2025 in #support-community
Save dashboard filters (across page reloads)

4 replies
CCConvex Community
•Created by erquhart on 12/1/2023 in #support-community
Uncaught Error: `new Date()` with non-number arguments is not supported.
I looked into this a bit further and
date-fns-tz
lists date-fns
v4 as a peer dependency so it's probably the best solution for now.
https://github.com/marnusw/date-fns-tz/blob/master/package.json#L131
The down side of this approach is that it tends to trip up the AI because I'm using @date-fns/tz on the frontend, so supporting @date-fns/tz within Convex mutations and queries would be ideal.74 replies
CCConvex Community
•Created by erquhart on 12/1/2023 in #support-community
Uncaught Error: `new Date()` with non-number arguments is not supported.
I think it is possible to use
date-fns-tz
with date-fns
v4 but I'm not 100% confident it will always work as expected. It seems the new package (@date-fns/tz
) doesn't use Intl API.74 replies
CCConvex Community
•Created by erquhart on 12/1/2023 in #support-community
Uncaught Error: `new Date()` with non-number arguments is not supported.
The
date-fns-tz
package works fine, which uses this Intl API but is intended for date-fns
v3, not v4.74 replies
CCConvex Community
•Created by erquhart on 12/1/2023 in #support-community
Uncaught Error: `new Date()` with non-number arguments is not supported.
Thanks for looking into this. Essentially I am trying to get the startOfDay and endOfDay timestamps within a given timezone (for a date such as '10/7/2024'). I can then filter on
_creationTime
with values between startOfDay
and endOfDay
.74 replies
CCConvex Community
•Created by erquhart on 12/1/2023 in #support-community
Uncaught Error: `new Date()` with non-number arguments is not supported.
I've resolved the
TZDate
issue for Convex queries by passing args from the client side.
However, it's still a problem for internal mutations triggered on a schedule.
I'm wondering if Convex will support date-fns
v4 with @date-fns/tz
inside mutations?74 replies
CCConvex Community
•Created by mikeysee on 9/29/2023 in #support-community
Convex and State Machines
I would also be interested in knowing when I should reach for using XState?
From what I understand, it's useful for restricting state transitions so that states can only be transitioned in a certain order.
I see some overlap with multi step workflows, and I'm curious how XState would be related to multi-step workflows such as Temporal, n8n/Zapier?
15 replies
CCConvex Community
•Created by Adam Harris on 6/28/2024 in #support-community
Can't import snapshot to dev
Upon double checking I found an empty table that was included, so I don't think this is the bug actually.
There was a table missing in the export though (named "docMigrations"), that was the cause of the "..has IDs that conflict with existing table..." error it seems (it was an empty table).
9 replies
CCConvex Community
•Created by Adam Harris on 6/28/2024 in #support-community
Can't import snapshot to dev
I think the issue is that empty tables are not included in the export data.
If I unpack the .zip, and look at
./_tables/documents.jsonl
I can see that the first table listed here is the one shown in the error message. I notice my empty table is not listed in this file, which is the one that it is conflicting with.
Would including empty tables in the export avoid this issue @lee?9 replies
CCConvex Community
•Created by erquhart on 12/1/2023 in #support-community
Uncaught Error: `new Date()` with non-number arguments is not supported.
That’s a good idea @Clever Tagline I’ll give it a go, thanks
74 replies
CCConvex Community
•Created by erquhart on 12/1/2023 in #support-community
Uncaught Error: `new Date()` with non-number arguments is not supported.
Thanks. I can work around the lack of
TZDate
support in mutations, but using Convex actions.
However, for Convex queries I have no suitable workaround because they can't be switched out with actions as easily - live subscriptions would be broken. I could setup a HTTP endpoint (using an action) but is starts to be loose a lot of the Convex benefits quickly.
Essentially, I want to fetch all orders
for the current day only (dependent on my merchant.timeZone
setting). Order date is store as a timestamp. Any suggestions how I do this using a Convex query?74 replies
CCConvex Community
•Created by erquhart on 12/1/2023 in #support-community
Uncaught Error: `new Date()` with non-number arguments is not supported.
I don't think the system time matters when using
TZDate
?. Yep, it works fine within a Convex action with "use node".74 replies
CCConvex Community
•Created by sshader on 10/3/2024 in #support-community
Auth token is not a valid JWT, cannot refetch the token on upgrade from Convex 1.15 -> 1.16.3
Great, thank you @sshader. I'll try with an updated version of React Native in the coming weeks.
55 replies
CCConvex Community
•Created by erquhart on 12/1/2023 in #support-community
Uncaught Error: `new Date()` with non-number arguments is not supported.
It works as expected if code is placed within a Convex action, just not within a query/mutation.
74 replies