1
0
mirror of https://github.com/bspeice/dtparse synced 2025-07-06 08:14:54 -04:00

Attempt to read timezones from chrono-tz

This commit is contained in:
2019-11-13 23:12:47 -05:00
parent c310cbaa0d
commit 142712900f
4 changed files with 36 additions and 5 deletions

20
src/tests/tz.rs Normal file
View File

@ -0,0 +1,20 @@
use crate::parse;
#[test]
fn est() {
// Issue originally reported in https://github.com/bspeice/dtparse/issues/18
let dt = parse("Fri, 21 Aug 2015 18:37:44 EST");
assert!(dt.is_ok());
assert!(dt.unwrap().1.is_some());
}
#[test]
fn cest() {
// Issue originally reported in https://github.com/bspeice/dtparse/issues/18
let dt = parse("Fri, 21 Aug 2015 18:37:44 CEST");
assert!(dt.is_ok());
// TODO: Fix
// assert!(dt.unwrap().1.is_some());
}