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),