aboutsummaryrefslogtreecommitdiff
path: root/base/src/context.rs
diff options
context:
space:
mode:
authorTill Höppner2016-03-16 17:17:25 +0100
committerTill Höppner2016-03-16 17:17:25 +0100
commit155971b36c100c0c146492375d5580ef0c5ac572 (patch)
treea7420ae7fbd123d3db4985621d9da5568da138e6 /base/src/context.rs
parent51c7e0c58d8aeaf342cb416c4376b69bd144c818 (diff)
downloadilc-155971b36c100c0c146492375d5580ef0c5ac572.tar.gz
ilc-155971b36c100c0c146492375d5580ef0c5ac572.tar.xz
ilc-155971b36c100c0c146492375d5580ef0c5ac572.zip
Add time_out param, change timezone handling
Diffstat (limited to 'base/src/context.rs')
-rw-r--r--base/src/context.rs6
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,
}