get rid of chrono in favor of time

This commit is contained in:
Irevoire 2022-02-15 11:41:55 +01:00
parent ea15ad6c34
commit 48542ac8fd
No known key found for this signature in database
GPG key ID: 7A6A970C96104F1B
6 changed files with 30 additions and 21 deletions

View file

@ -1,5 +1,5 @@
use chrono::Utc;
use roaring::RoaringBitmap;
use time::OffsetDateTime;
use crate::{ExternalDocumentsIds, FieldDistribution, Index, Result};
@ -14,7 +14,7 @@ impl<'t, 'u, 'i> ClearDocuments<'t, 'u, 'i> {
}
pub fn execute(self) -> Result<u64> {
self.index.set_updated_at(self.wtxn, &Utc::now())?;
self.index.set_updated_at(self.wtxn, &OffsetDateTime::now_utc())?;
let Index {
env: _env,
main: _main,