Skip to content

Commit

Permalink
Integer conversion on Solaris and Illumos (#278)
Browse files Browse the repository at this point in the history
Fix illumos support.
  • Loading branch information
francescocarzaniga committed Sep 24, 2020
1 parent ccd997e commit bb39ef9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utc_offset.rs
Expand Up @@ -378,6 +378,7 @@ fn try_local_offset_at(datetime: OffsetDateTime) -> Option<UtcOffset> {
#[cfg(any(target_os = "solaris", target_os = "illumos"))]
{
use crate::Date;
use std::convert::TryFrom;

let mut tm = tm;
if tm.tm_sec == 60 {
Expand Down

0 comments on commit bb39ef9

Please sign in to comment.