Skip to content

Commit

Permalink
nit: allow deprecated chrono method in deprecated backends (#1905)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 authored Oct 10, 2024
1 parent 80c8763 commit 0b3f714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions logger/src/dal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ impl Log {
deployment_id: log.deployment_id,
shuttle_service_name: log_line.service_name,
tx_timestamp: DateTime::from_naive_utc_and_offset(
#[allow(deprecated)]
NaiveDateTime::from_timestamp_opt(
timestamp.seconds,
timestamp.nanos.try_into().unwrap_or_default(),
Expand Down
1 change: 1 addition & 0 deletions proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ pub mod logger {
internal_origin: Backend::from_str(&service_name)
.expect("backend name to be valid"),
timestamp: Utc.from_utc_datetime(
#[allow(deprecated)]
&NaiveDateTime::from_timestamp_opt(
tx_timestamp.seconds,
tx_timestamp.nanos.try_into().unwrap_or_default(),
Expand Down

0 comments on commit 0b3f714

Please sign in to comment.