Replies: 2 comments 4 replies
-
Does anyone have a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
There's a method on DateTime called const posts = await Post.query().where('publishAt', '<=', DateTime.now().toSql()) https://moment.github.io/luxon/api-docs/index.html#datetimetosql |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i have query build on QueryBuilder (Database.query()...etc)
The DateTime field is serialized as UTC format (2020-11-02T12:43:06.000Z) while in mySql table is 2020-11-17 13:06:42 like i would to show.
How can i define the DateTime format?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions