Replies: 1 comment 1 reply
-
|
As of v2.0.0, SurrealDB no longer eagerly converts a string into a datetime. An implicit d prefix or cast using is required instead. Just an fyi: #2804 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Rust, I have a field of a struct with type
chrono::DateTime<Utc>. The struct derivesserde::Serializeandserde:Deserialize. I tried to inserted some muck data and it worked fine.While I query them, I found that the field is stored as string, instead of datetimes. Hence I cannot query the data with WHERE condition like
time > <datetime>'2025-10-15'. Buttime = '2025-10-18T04:24:17.180400918Z'works.What did I do wrong? How can I make it a proper datetime?
Beta Was this translation helpful? Give feedback.
All reactions