Use local datetime on events instead of naive
//! 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<Local>),
Path(PathBuf),
Source(Source),
Process(u32),
