From 92c071556b9ded843facd3b5afbed4c4d44a9469 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Sun, 11 Aug 2024 16:43:56 -0400 Subject: [PATCH] fix deprecations --- vegafusion-common/src/data/json_writer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vegafusion-common/src/data/json_writer.rs b/vegafusion-common/src/data/json_writer.rs index 6138e29e..d731405e 100644 --- a/vegafusion-common/src/data/json_writer.rs +++ b/vegafusion-common/src/data/json_writer.rs @@ -164,7 +164,7 @@ macro_rules! set_temporal_column_as_millis_by_array_type { .for_each(|(i, row)| { if !arr.is_null(i) { if let Some(v) = arr.$cast_fn(i) { - row.insert($col_name.to_string(), v.timestamp_millis().into()); + row.insert($col_name.to_string(), v.and_utc().timestamp_millis().into()); } else { row.insert($col_name.to_string(), Value::Null); } @@ -811,6 +811,7 @@ mod tests { let ts_millis = ts_string .parse::() .unwrap() + .and_utc() .timestamp_millis(); let arr_date32 = Date32Array::from(vec![