Skip to content

Commit

Permalink
The wasm-bindgen code refers to oldtime::Duration and is failing
Browse files Browse the repository at this point in the history
  • Loading branch information
quodlibetor committed Sep 25, 2020
1 parent 9085f95 commit 1df9222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offset/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl TimeZone for Local {
let mut local = local.clone();
// Get the offset from the js runtime
let offset = FixedOffset::west((js_sys::Date::new_0().get_timezone_offset() as i32) * 60);
local -= oldtime::Duration::seconds(offset.local_minus_utc() as i64);
local -= ::Duration::seconds(offset.local_minus_utc() as i64);
LocalResult::Single(DateTime::from_utc(local, offset))
}

Expand Down

0 comments on commit 1df9222

Please sign in to comment.