pub fn parse_transaction_date(date_str: Option<&str>) -> NaiveDateTimeExpand description
Parses a transaction date submitted by the create/edit form.
The browser’s datetime-local control (and the default-date helper’s
toISOString().slice(0,16)) submit YYYY-MM-DDTHH:MM — NOT RFC3339 — so
accepting only RFC3339 silently dropped every entered date to “now”. Accept
the datetime-local shapes AND RFC3339; only a genuinely absent/empty/
unparseable value falls back to the current time.