diff options
| -rw-r--r-- | config.ha | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -7,6 +7,7 @@ use io; use fs; use os; use errors; +use strings; type config = struct { tz: chrono::locality, @@ -36,8 +37,10 @@ fn loadconfig() (config | conferror) = { let tz: chrono::locality = chrono::LOCAL; for (const e => ini::next(&sc)!) { - if (e.1 == "tz") { - tz = chrono::tz(e.2)?; + const key = strings::trim(e.1); + const val = strings::trim(e.2); + if (key == "tz") { + tz = chrono::tz(val)?; }; }; return config { |
