Skip to content

Commit ab249cf

Browse files
quodlibetorpickfire
authored andcommitted
The wasm-bindgen code refers to oldtime::Duration and is failing
chronotope#286 (comment)
1 parent d8ac8e7 commit ab249cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/offset/local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl TimeZone for Local {
152152
let mut local = local.clone();
153153
// Get the offset from the js runtime
154154
let offset = FixedOffset::west((js_sys::Date::new_0().get_timezone_offset() as i32) * 60);
155-
local -= oldtime::Duration::seconds(offset.local_minus_utc() as i64);
155+
local -= ::Duration::seconds(offset.local_minus_utc() as i64);
156156
LocalResult::Single(DateTime::from_utc(local, offset))
157157
}
158158

0 commit comments

Comments
 (0)