The parse_relative_time function is using Utc::now().date_naive() to get today's date, but parse_relative_time_at_date uses Local::now().date_naive(); these two values are subtracted, which gives incorrect results when Utc and Local time span midnight.
I think this fixes #36, at least in the short term
The
parse_relative_time
function is usingUtc::now().date_naive()
to get today's date, butparse_relative_time_at_date
usesLocal::now().date_naive()
; these two values are subtracted, which gives incorrect results when Utc and Local time span midnight.I think this fixes #36, at least in the short term