aboutsummaryrefslogtreecommitdiff
path: root/config.ha
diff options
context:
space:
mode:
Diffstat (limited to 'config.ha')
-rw-r--r--config.ha7
1 files changed, 5 insertions, 2 deletions
diff --git a/config.ha b/config.ha
index 6a343eb..d3ee234 100644
--- a/config.ha
+++ b/config.ha
@@ -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 {