aboutsummaryrefslogtreecommitdiffstats
path: root/src/xml/reader.rs
diff options
context:
space:
mode:
authorEdward Barnard2018-04-30 13:06:59 +0100
committerEdward Barnard2018-04-30 13:06:59 +0100
commita4963e97eff1fd7d465854f2a5e9a155b60c7ab2 (patch)
treeff76ed20e2cba363c37dc49e6fa249f3372a6480 /src/xml/reader.rs
parent33571d053ee2fa167eb99572a3cef9450ef47ecf (diff)
downloadrust-plist-a4963e97eff1fd7d465854f2a5e9a155b60c7ab2.tar.bz2
Remove dev dependency on chrono.
Diffstat (limited to 'src/xml/reader.rs')
-rw-r--r--src/xml/reader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml/reader.rs b/src/xml/reader.rs
index c1c2b3b..6642d59 100644
--- a/src/xml/reader.rs
+++ b/src/xml/reader.rs
@@ -148,7 +148,7 @@ impl<R: Read> Iterator for EventReader<R> {
#[cfg(test)]
mod tests {
- use chrono::{TimeZone, Utc};
+ use humantime::parse_rfc3339_weak;
use std::fs::File;
use std::path::Path;
@@ -179,7 +179,7 @@ mod tests {
StringValue("Data".to_owned()),
DataValue(vec![0, 0, 0, 190, 0, 0, 0, 3, 0, 0, 0, 30, 0, 0, 0]),
StringValue("Birthdate".to_owned()),
- DateValue(Date::from_chrono(Utc.ymd(1981, 05, 16).and_hms(11, 32, 06))),
+ DateValue(parse_rfc3339_weak("1981-05-16 11:32:06").unwrap().into()),
StringValue("Blank".to_owned()),
StringValue("".to_owned()),
EndDictionary,