summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs
diff options
context:
space:
mode:
authorLukasz Woznicki <lukasz.woznicki@softwareag.com>2022-02-09 23:35:36 +0000
committerLukasz Woznicki <lukasz.woznicki@softwareag.com>2022-02-14 08:26:22 +0000
commit03124da93bf8788c0b79ce61219e3c8a2c603768 (patch)
tree8ecf531576a39cc209b597bb4cad3c0267c7dcbc /crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs
parent379ea3fcdaccf2aec01b24d16c485d4bcabd9a58 (diff)
Use 'time' instead of 'chrono' due to CVE for thin_edge_json and all dependent crates
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
Diffstat (limited to 'crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs')
-rw-r--r--crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs b/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs
index 251e0f90..a778f86b 100644
--- a/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs
+++ b/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs
@@ -618,7 +618,7 @@ mod tests {
#[test_case("/path/to/another-variant-2021-10-25T07:45:41Z.log")]
#[test_case("/yet-another-variant-2021-10-25T07:45:41Z.log")]
fn test_datetime_parsing_from_path(file_path: &str) {
- // checking that `get_date_from_file_path` unwraps a `chrono::NaiveDateTime` object.
+ // checking that `get_date_from_file_path` unwraps a `OffsetDateTime` object.
// this should return an Ok Result.
let path_buf = PathBuf::from_str(file_path).unwrap();
let path_buf_datetime = get_datetime_from_file_path(&path_buf);
@@ -630,7 +630,7 @@ mod tests {
#[test_case("/path/to/another-variant-07:45:41Z-2021-10-25T.log")]
#[test_case("/yet-another-variant-2021-10-25T07:45Z.log")]
fn test_datetime_parsing_from_path_fail(file_path: &str) {
- // checking that `get_date_from_file_path` unwraps a `chrono::NaiveDateTime` object.
+ // checking that `get_date_from_file_path` unwraps a `OffsetDateTime` object.
// this should return an err.
let path_buf = PathBuf::from_str(file_path).unwrap();
let path_buf_datetime = get_datetime_from_file_path(&path_buf);