From f08bdad8ee8946622479d2a3f19db5866c332f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Mon, 16 Aug 2021 21:52:13 +1200 Subject: [PATCH] Use local datetime on events instead of naive --- lib/src/event.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/event.rs b/lib/src/event.rs index 15fbf6e..7c4add6 100644 --- a/lib/src/event.rs +++ b/lib/src/event.rs @@ -4,7 +4,7 @@ //! 2. To be filtered upon according to whatever set of criteria is desired; //! 3. To carry information about what caused the event, which may be provided to the process. -use chrono::NaiveDateTime; +use chrono::{DateTime, Local}; use std::{collections::HashMap, path::PathBuf}; /// An event, as far as watchexec cares about. @@ -18,7 +18,7 @@ pub struct Event { #[derive(Clone, Debug, Eq, PartialEq)] #[non_exhaustive] pub enum Particle { - Time(NaiveDateTime), + Time(DateTime), Path(PathBuf), Source(Source), Process(u32),