prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
583 stars 61 forks source link

Fix SQLite datetime conversion #281

Closed dpetrick closed 3 years ago

dpetrick commented 3 years ago

Rustqlite stores incoming dates like 1968-11-02T02:25:15.160Z as millis (-36711284840), which fails the replaced conversion logic with all sorts of invalid datetime panics.

Proposed fix is to simply use the UTC timestamp conversion chrono offers, without additional computations in between.

pimeys commented 3 years ago

Neat and nice.