##// END OF EJS Templates
rust-changelog: switch away from deprecated APIs for datetime use...
Raphaël Gomès -
r53061:6b7ffa3f default
parent child Browse files
Show More
@@ -366,10 +366,7 fn parse_timestamp(
366 let timezone = FixedOffset::west_opt(timezone_secs)
366 let timezone = FixedOffset::west_opt(timezone_secs)
367 .ok_or_else(|| HgError::corrupted("timezone offset out of bounds"))?;
367 .ok_or_else(|| HgError::corrupted("timezone offset out of bounds"))?;
368
368
369 Ok(DateTime::from_naive_utc_and_offset(
369 Ok(timestamp_utc.with_timezone(&timezone))
370 timestamp_utc.naive_utc(),
371 timezone,
372 ))
373 }
370 }
374
371
375 /// Attempt to parse the given string as floating-point timestamp, and
372 /// Attempt to parse the given string as floating-point timestamp, and
General Comments 0
You need to be logged in to leave comments. Login now