summaryrefslogtreecommitdiffstats
path: root/crates/core/thin_edge_json/src/data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/thin_edge_json/src/data.rs')
-rw-r--r--crates/core/thin_edge_json/src/data.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/core/thin_edge_json/src/data.rs b/crates/core/thin_edge_json/src/data.rs
index 4fa25cf4..ef3245e3 100644
--- a/crates/core/thin_edge_json/src/data.rs
+++ b/crates/core/thin_edge_json/src/data.rs
@@ -1,11 +1,11 @@
//! The in-memory data model representing ThinEdge JSON.
-use chrono::prelude::*;
+use time::OffsetDateTime;
/// In-memory representation of parsed ThinEdge JSON.
#[derive(Debug)]
pub struct ThinEdgeJson {
- pub timestamp: Option<DateTime<FixedOffset>>,
+ pub timestamp: Option<OffsetDateTime>,
pub values: Vec<ThinEdgeValue>,
}
@@ -14,7 +14,7 @@ impl ThinEdgeJson {
self.timestamp.is_some()
}
- pub fn set_timestamp(&mut self, timestamp: DateTime<FixedOffset>) {
+ pub fn set_timestamp(&mut self, timestamp: OffsetDateTime) {
self.timestamp = Some(timestamp)
}
}