The below code is causing now 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?
|
fn at_date_inner(date: Vec<Item>, mut d: 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(); |