Open stephenmeehanuk opened 23 hours ago
I updated my blueprint, removed time_enabled: true
and time_seconds_enabled: true
handle: date
field:
type: date
required: true
default: now
validate:
- required
and changed postDateTime
to just date
postDateTime
--
2020-04-01
2020-06-15
2020-05-05
2020-12-09
2020-12-10
It works now. Would be handy to be able to import date and time in that format though.
Looks like this is because of 2020-12-10 8:36:00
. It's 8:
but probably should be 08:
.
We might need handling to define what date format is being used in the csv fields.
Bug description
I've got a handful of posts (in a .csv) with the date formatted like this:
postDateTime
from mycsv
is mapped todate
in StatamicThe
date
in my blueprint looks like thisWhen I run the import, I get this error:
The import works if I remove the date mapping.
How to reproduce
Try to import dates in this format
Logs
No response
Environment
Additional details
No response