Remove chrono warning and replace with TODO

This commit is contained in:
xmppftw xmppftw 2024-06-03 16:27:24 +02:00
parent 382caf83a8
commit cc657d75f6

View File

@ -81,7 +81,8 @@ pub fn parse_datetime(i: &str) -> IResult<&str, DateTime<Utc>> {
map_res(take(2usize), u32::from_str),
tag("Z"),
))(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> {