Show More
@@ -366,10 +366,7 fn parse_timestamp( | |||
|
366 | 366 | let timezone = FixedOffset::west_opt(timezone_secs) |
|
367 | 367 | .ok_or_else(|| HgError::corrupted("timezone offset out of bounds"))?; |
|
368 | 368 | |
|
369 | Ok(DateTime::from_naive_utc_and_offset( | |
|
370 | timestamp_utc.naive_utc(), | |
|
371 | timezone, | |
|
372 | )) | |
|
369 | Ok(timestamp_utc.with_timezone(&timezone)) | |
|
373 | 370 | } |
|
374 | 371 | |
|
375 | 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