mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
Use local datetime on events instead of naive
This commit is contained in:
parent
61fec2cf27
commit
f08bdad8ee
@ -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<Local>),
|
||||
Path(PathBuf),
|
||||
Source(Source),
|
||||
Process(u32),
|
||||
|
Loading…
Reference in New Issue
Block a user