Open farodin91 opened 7 years ago
As long as Diesel supports SystemTime (which it looks like it does) this sounds good to me!
One problem that came up in #137 is how to go from seconds (u64
etc) to SystemTime
so that can be used in diesel queries. Maybe there is a workaround? We used the time
crate (which is really missing from the std) for the conversions.
Could be better to switch NaiveDateTime
form chrono
.
In general we should try to eliminate u64 and i64 where we can when it comes to timestamps.
chrono would be fine if the stdlib time APIs don't cut it.
This would make calculations easier. It's also increase the support of different Database types. Diesel will start to support mysql in future.