- Notifications
You must be signed in to change notification settings - Fork26
Open
Description
The below code is causingnow
and other relative time to be parsed relative to "start of the day" instead of "now". Is this a bug or there's special reason for the behavior?
parse_datetime/src/items/mod.rs
Lines 340 to 344 in12f73c3
fnat_date_inner(date:Vec<Item>,mutd:DateTime<FixedOffset>) ->Option<DateTime<FixedOffset>>{ | |
d = d.with_hour(0).unwrap(); | |
d = d.with_minute(0).unwrap(); | |
d = d.with_second(0).unwrap(); | |
d = d.with_nanosecond(0).unwrap(); |
Metadata
Metadata
Assignees
Labels
No labels