Remove chrono warning and replace with TODO
This commit is contained in:
parent
77fd97aa31
commit
8ba2df41e0
|
@ -81,7 +81,8 @@ pub fn parse_datetime(i: &str) -> IResult<&str, DateTime<Utc>> {
|
||||||
map_res(take(2usize), u32::from_str),
|
map_res(take(2usize), u32::from_str),
|
||||||
tag("Z"),
|
tag("Z"),
|
||||||
))(i)?;
|
))(i)?;
|
||||||
Ok((i, Utc.ymd(year, month, day).and_hms(hour, minute, second)))
|
// TODO: handle DST and other time transitions
|
||||||
|
Ok((i, Utc.with_ymd_and_hms(year, month, day, hour, minute, second).single().unwrap()))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn parse_log_info(i: &str) -> IResult<&str, LogInfo> {
|
pub fn parse_log_info(i: &str) -> IResult<&str, LogInfo> {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user