diff options
author | Till Höppner | 2016-03-16 17:17:25 +0100 |
---|---|---|
committer | Till Höppner | 2016-03-16 17:17:25 +0100 |
commit | 155971b36c100c0c146492375d5580ef0c5ac572 (patch) | |
tree | a7420ae7fbd123d3db4985621d9da5568da138e6 /base/src | |
parent | 51c7e0c58d8aeaf342cb416c4376b69bd144c818 (diff) | |
download | ilc-155971b36c100c0c146492375d5580ef0c5ac572.tar.gz ilc-155971b36c100c0c146492375d5580ef0c5ac572.tar.xz ilc-155971b36c100c0c146492375d5580ef0c5ac572.zip |
Add time_out param, change timezone handling
Diffstat (limited to 'base/src')
-rw-r--r-- | base/src/context.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/src/context.rs b/base/src/context.rs index c49ef23..79f0a6a 100644 --- a/base/src/context.rs +++ b/base/src/context.rs @@ -2,7 +2,8 @@ use chrono::naive::date::NaiveDate; use chrono::offset::fixed::FixedOffset; pub struct Context { - pub timezone: FixedOffset, + pub timezone_in: FixedOffset, + pub timezone_out: FixedOffset, pub override_date: Option<NaiveDate>, pub channel: Option<String>, } @@ -10,7 +11,8 @@ pub struct Context { impl Default for Context { fn default() -> Context { Context { - timezone: FixedOffset::west(0), + timezone_in: FixedOffset::west(0), + timezone_out: FixedOffset::west(0), override_date: None, channel: None, } |