wagtail-deprecated / wagtail-react-streamfield

Powerful field for inserting multiple blocks with nesting. (NO LONGER MAINTAINED - See Wagtail 2.13 Release Notes)
https://wagtail.github.io/react-streamfield/public/
BSD 3-Clause "New" or "Revised" License
74 stars 23 forks source link

DateTime format for DateTimeBlock is not loaded correctly #25 #27

Closed Shagrat closed 5 years ago

Shagrat commented 5 years ago

Default django DjangoJSONEncoder uses default isoformat() separator (T), so there was either to patch DateTimePicker widgets configs for react-streamline fields or patch InputJSONEncoder/ConfigJSONEncoder . Latest seamed more preferable.

BertrandBordage commented 5 years ago

Thank you for your contribution @Shagrat! Unfortunately, this fix doesn’t work if you change WAGTAIL_DATE_FORMAT & WAGTAIL_DATETIME_FORMAT :\ I pushed b552ee9d0a966f9a81bb0fdbaeec8a830996c766 and released 1.0.6 with a more standard fix :)