createdAt, updatedAt are coming out as invalid date #16482
Unanswered
cheersmas
asked this question in
Help & Questions
Replies: 1 comment 2 replies
-
There should be no space before the timezone offset in the ISO 8601 date format. Your dates should look like this:
instead of this:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a sqlite database and seeded it with some data.
Table after the process is filled and looks like below:
The issue is the
createdAt
andupdateAt
field is coming out as invalid date when I'm trying to query this via an endpoint:Hono endpoint:
The output at console:
I've tried adding a custom createdAt, and updatedAt field using
beforeCreate
andbeforeUpdate
hooks on the model but it didn't work. The values were stillInvalid Date
.`Quiz Model`
Beta Was this translation helpful? Give feedback.
All reactions