Skip to content

Commit

Permalink
Remove use of deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Sep 25, 2023
1 parent 3fb9e14 commit 976ceb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub(crate) fn safe_display_url(mut url: Url) -> String {
}

pub(crate) fn git_timestamp(t: Time) -> DateTime<FixedOffset> {
DateTime::from_utc(
DateTime::from_naive_utc_and_offset(
NaiveDateTime::from_timestamp_opt(t.seconds(), 0).unwrap(),
FixedOffset::east_opt(t.offset_minutes() * 60).unwrap(),
)
Expand Down

0 comments on commit 976ceb4

Please sign in to comment.