diff options
| author | Edward Barnard | 2018-04-30 13:06:59 +0100 |
|---|---|---|
| committer | Edward Barnard | 2018-04-30 13:06:59 +0100 |
| commit | a4963e97eff1fd7d465854f2a5e9a155b60c7ab2 (patch) | |
| tree | ff76ed20e2cba363c37dc49e6fa249f3372a6480 /src/binary | |
| parent | 33571d053ee2fa167eb99572a3cef9450ef47ecf (diff) | |
| download | rust-plist-a4963e97eff1fd7d465854f2a5e9a155b60c7ab2.tar.bz2 | |
Remove dev dependency on chrono.
Diffstat (limited to 'src/binary')
| -rw-r--r-- | src/binary/reader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/binary/reader.rs b/src/binary/reader.rs index 870dc05..5878836 100644 --- a/src/binary/reader.rs +++ b/src/binary/reader.rs @@ -328,7 +328,7 @@ impl<R: Read + Seek> 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; @@ -355,7 +355,7 @@ mod tests { StringValue("Height".to_owned()), RealValue(1.60), 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("Author".to_owned()), StringValue("William Shakespeare".to_owned()), StringValue("Data".to_owned()), |
