PB's date field validator runs an internal regex that requires a
full ISO 8601 datetime (e.g. '2026-08-24T00:00:00.000Z'), not a
bare 'YYYY-MM-DD' string. The new parser returns YYYY-MM-DD which
is correct for our internal use, but the route was passing it
straight through to PB and getting rejected with:
'The string did not match the expected pattern.'
Anchor at UTC midnight (the pump sheet is date-only) before
writing to PB. Same shape as the original route's
'new Date(date).toISOString()' output.
Triggered by importing 'The Hills Diesel 1-24 August.xlsx'
through the new xlsx route after the migration ran.
|
||
|---|---|---|
| .. | ||
| data-import-batches/[id] | ||
| delivery-notes/upload | ||
| fuel-logs/import | ||
| health | ||
| purchase-orders | ||
| records/[collection]/[id]/verify | ||
| timesheets/import | ||