Skip to content

Commit

Permalink
Fix behavior for OffsetDateTime
Browse files Browse the repository at this point in the history
The previous behavior was ambiguous, as it was unclear whether the
provided offset was the one being assumed and being converting to UTC or
vice versa.

This ambiguity extended to within the code, so there were some bugs
where the behavior was backwards. These have been fixed, as it's now
clearly documented that the datetime stored in the struct is the UTC
representation, not local.
  • Loading branch information
jhpratt committed Jan 28, 2020
1 parent fd6050a commit 8caedc3
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 58 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "time"
version = "0.2.4"
version = "0.2.5"
authors = ["Jacob Pratt <the.z.cuber@gmail.com>"]
edition = "2018"
repository = "https://github.com/time-rs/time"
Expand Down
Loading

0 comments on commit 8caedc3

Please sign in to comment.