Browse Source

add handling for 'utc'

tags/v1.2.1
Jonathan Strong 2 years ago
parent
commit
148ffd297c
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      Cargo.toml
  2. +2
    -0
      src/lib.rs

+ 1
- 1
Cargo.toml View File

@@ -1,6 +1,6 @@
[package]
name = "tzconvert"
version = "1.2.0"
version = "1.2.1"
edition = "2018"
authors = ["Jonathan Strong <jstrong@mmcxi.com>"]



+ 2
- 0
src/lib.rs View File

@@ -45,6 +45,8 @@ fn convert_common_tz_abbrs(tz: &str) -> &str {
if tz.eq_ignore_ascii_case("CET") { return "Europe/Brussels" }
if tz.eq_ignore_ascii_case("CEST") { return "Europe/Brussels" }
if tz.eq_ignore_ascii_case("Brussels") { return "Europe/Brussels" }
if tz.eq_ignore_ascii_case("utc") { return "UTC" }
if tz.eq_ignore_ascii_case("z") { return "UTC" }

tz
}


Loading…
Cancel
Save