Skip to content

Commit 8caedc3

Browse files
committed
Fix behavior for OffsetDateTime
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.
1 parent fd6050a commit 8caedc3

File tree

3 files changed

+91
-58
lines changed

3 files changed

+91
-58
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "time"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
authors = ["Jacob Pratt <[email protected]>"]
55
edition = "2018"
66
repository = "https://github.com/time-rs/time"

0 commit comments

Comments
 (0)