Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #1462

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions nexus/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions nexus/peer-bigquery/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{
task::{Context, Poll},
};

use chrono::{NaiveDateTime, TimeZone, Utc};
use chrono::DateTime;
use futures::Stream;
use gcp_bigquery_client::model::{
field_type::FieldType, query_response::ResultSet, table_field_schema::TableFieldSchema,
Expand Down Expand Up @@ -155,9 +155,9 @@ impl BqRecordStream {
FieldType::Timestamp => {
let timestamp = result_set.get_i64_by_name(field_name)?;
if let Some(ts) = timestamp {
let naive_datetime = NaiveDateTime::from_timestamp_opt(ts, 0)
.ok_or(anyhow::Error::msg("Invalid naive datetime"))?;
Some(Value::Timestamp(Utc.from_utc_datetime(&naive_datetime)))
let datetime = DateTime::from_timestamp(ts, 0)
.ok_or(anyhow::Error::msg("Invalid datetime"))?;
Some(Value::Timestamp(datetime))
} else {
None
}
Expand Down
Loading
Loading