aboutsummaryrefslogtreecommitdiff
path: root/base/src/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'base/src/context.rs')
-rw-r--r--base/src/context.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/src/context.rs b/base/src/context.rs
index 4393457..fe264ab 100644
--- a/base/src/context.rs
+++ b/base/src/context.rs
@@ -7,3 +7,13 @@ pub struct Context {
pub override_date: Option<NaiveDate>,
pub channel: Option<String>,
}
+
+impl Default for Context {
+ fn default() -> Context {
+ Context {
+ timezone: FixedOffset::west(0),
+ override_date: None,
+ channel: None,
+ }
+ }
+}