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 authored and jhpratt committed Sep 24, 2020
1 parent ccd997e commit b398aaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yaml
Expand Up @@ -15,8 +15,7 @@ jobs:
rust: [1.32.0, 1.36.0, stable]
target:
- { triple: x86_64-unknown-netbsd, std: true }
# Illumos target does not exist until Rust 1.47.
# - { triple: x86_64-unknown-illumos, std: true }
- { triple: x86_64-sun-solaris, std: true }
- { triple: wasm32-wasi, std: true }
- { triple: thumbv7em-none-eabihf, std: false }
exclude:
Expand All @@ -26,6 +25,11 @@ jobs:
- # WASI target did not exist at the time
rust: 1.32.0
target: { triple: wasm32-wasi, std: true }
- # Solaris target did not exist in previous rust
rust: 1.32.0
target: { triple: x86_64-sun-solaris, std: true }
- rust: 1.36.0
target: { triple: x86_64-sun-solaris, std: true }

steps:
- name: Checkout sources
Expand Down
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 standback::convert::TryFrom;

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

0 comments on commit b398aaf

Please sign in to comment.