From bc9316c03f8c7b635e58d17b738a7027c4502f53 Mon Sep 17 00:00:00 2001 From: danielalvsaaker <30574112+danielalvsaaker@users.noreply.github.com> Date: Sat, 9 Apr 2022 12:17:43 +0000 Subject: [PATCH] Update absolute path to 2018 syntax for WASM/wasmbind feature (#672) --- src/offset/local.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/offset/local.rs b/src/offset/local.rs index f1da534212..1e598f2b6a 100644 --- a/src/offset/local.rs +++ b/src/offset/local.rs @@ -155,7 +155,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 -= ::Duration::seconds(offset.local_minus_utc() as i64); + local -= crate::Duration::seconds(offset.local_minus_utc() as i64); LocalResult::Single(DateTime::from_utc(local, offset)) }