diff --git a/src/duration/parse.rs b/src/duration/parse.rs index 3dddcd9..80847ee 100644 --- a/src/duration/parse.rs +++ b/src/duration/parse.rs @@ -330,5 +330,5 @@ fn parse_offset(s: &str) -> Result { } } - Ok(-(hours * Unit::Hour + minutes * Unit::Minute + seconds * Unit::Second)) + Ok(hours * Unit::Hour + minutes * Unit::Minute + seconds * Unit::Second) } diff --git a/src/efmt/formatter.rs b/src/efmt/formatter.rs index a809ba6..cd9b08f 100644 --- a/src/efmt/formatter.rs +++ b/src/efmt/formatter.rs @@ -95,8 +95,8 @@ impl Formatter { pub fn with_timezone(epoch: Epoch, offset: Duration, format: Format) -> Self { Self { - epoch: epoch - offset, - offset: -offset, + epoch: epoch + offset, + offset, format, } }