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:
20
src/tests/tz.rs
Normal file
20
src/tests/tz.rs
Normal 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());
|
||||
}
|
Reference in New Issue
Block a user