diff --git a/Cargo.toml b/Cargo.toml index 6c623c4..894a28f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-dsn-parser" -version = "0.2.0" +version = "0.3.0" edition = "2024" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/data/dsn.xml b/data/dsn.xml index 91f3677..315a856 100644 --- a/data/dsn.xml +++ b/data/dsn.xml @@ -1,50 +1,62 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -1664054963000 - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1775183083000 + diff --git a/src/model.rs b/src/model.rs index c1700e4..8b99c6c 100644 --- a/src/model.rs +++ b/src/model.rs @@ -99,7 +99,7 @@ pub struct Station { pub name: String, pub friendly_name: String, pub time_utc: u64, - pub tz_offset: i64, + pub tz_offset: f64, pub dishes: Vec, } @@ -117,7 +117,7 @@ impl TryFrom> for Station { let name = get_attr(&attrs, "name")?; let friendly_name = get_attr(&attrs, "friendlyName")?; let time_utc = get_attr(&attrs, "timeUTC")?.parse::()?; - let tz_offset = get_attr(&attrs, "timeZoneOffset")?.parse::()?; + let tz_offset = get_attr(&attrs, "timeZoneOffset")?.parse::()?; Ok(Self { name,