aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml6
-rw-r--r--src/date.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cca82d3..3ab3523 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,10 +14,10 @@ default = ["serde_serialization"]
serde_serialization = ["serde"]
[dependencies]
-xml-rs = "0.3.6"
base64 = "0.4.1"
-byteorder = "0.5.3"
-chrono = "0.2.22"
+byteorder = "1.0.0"
+chrono = "0.3.0"
+xml-rs = "0.4.1"
serde = { version = "0.9.5", optional = true }
[dev-dependencies]
diff --git a/src/date.rs b/src/date.rs
index b7c9914..d36ff16 100644
--- a/src/date.rs
+++ b/src/date.rs
@@ -27,7 +27,7 @@ impl Date {
let dur = dur + Duration::nanoseconds(submilli_nanos as i64);
let plist_epoch = UTC.ymd(2001, 1, 1).and_hms(0, 0, 0);
- let date = try!(plist_epoch.checked_add(dur).ok_or(Error::InvalidData));
+ let date = try!(plist_epoch.checked_add_signed(dur).ok_or(Error::InvalidData));
Ok(Date {
inner: date