diff options
author | Ben S <ogham@bsago.me> | 2015-09-21 00:15:07 +0100 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-09-21 00:15:07 +0100 |
commit | 41fb02a02d8dac0c1576b0a63d6af3a3c112be6c (patch) | |
tree | fd840cc32369b33c5f96ffec20657acd4e0ae36e /src/output/details.rs | |
parent | 3d3acc2e93ac81e5a96299ab53415dd8ceb5c6d2 (diff) |
Upgrade to latest version of datetime crate
- VariableOffset -> TimeZone::VariableOffset
Diffstat (limited to 'src/output/details.rs')
-rw-r--r-- | src/output/details.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output/details.rs b/src/output/details.rs index a62c01e..5778f90 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -128,7 +128,7 @@ use ansi_term::{ANSIString, ANSIStrings, Style}; use datetime::local::{LocalDateTime, DatePiece}; use datetime::format::{DateFormat}; -use datetime::zoned::{VariableOffset, TimeZone}; +use datetime::zoned::{TimeZone}; use locale; @@ -381,7 +381,7 @@ pub struct Table<U> { time: locale::Time, numeric: locale::Numeric, - tz: VariableOffset, + tz: TimeZone, users: U, colours: Colours, current_year: i64, @@ -394,7 +394,7 @@ impl Default for Table<MockUsers> { rows: Vec::new(), time: locale::Time::english(), numeric: locale::Numeric::english(), - tz: VariableOffset::localtime().unwrap(), + tz: TimeZone::localtime().unwrap(), users: MockUsers::with_current_uid(0), colours: Colours::default(), current_year: 1234, @@ -413,7 +413,7 @@ impl Table<OSUsers> { time: locale::Time::load_user_locale().unwrap_or_else(|_| locale::Time::english()), numeric: locale::Numeric::load_user_locale().unwrap_or_else(|_| locale::Numeric::english()), - tz: VariableOffset::localtime().unwrap(), + tz: TimeZone::localtime().unwrap(), users: OSUsers::empty_cache(), colours: colours, current_year: LocalDateTime::now().year(), |