mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 23:36:17 +00:00
Update absolute path to 2018 syntax for WASM/wasmbind feature (#672)
This commit is contained in:
parent
49838124ff
commit
29cbd5945c
@ -155,7 +155,7 @@ impl TimeZone for Local {
|
|||||||
let mut local = local.clone();
|
let mut local = local.clone();
|
||||||
// Get the offset from the js runtime
|
// Get the offset from the js runtime
|
||||||
let offset = FixedOffset::west((js_sys::Date::new_0().get_timezone_offset() as i32) * 60);
|
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))
|
LocalResult::Single(DateTime::from_utc(local, offset))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user