Skip to content

Commit

Permalink
fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Aug 11, 2024
1 parent 6b049ff commit 92c0715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vegafusion-common/src/data/json_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -811,6 +811,7 @@ mod tests {
let ts_millis = ts_string
.parse::<chrono::NaiveDateTime>()
.unwrap()
.and_utc()
.timestamp_millis();

let arr_date32 = Date32Array::from(vec![
Expand Down

0 comments on commit 92c0715

Please sign in to comment.