Open quiltingcode opened 1 year ago
I have made a change to the field attributes in the API model for event_date, to try and stop the default date overriding the user selected date. Now in the edit event screen, it can not pull through the date saying the format is incorrect.
THe format date get method in the event serialiser was stopping the event_date field from appearing in the create event form. I think this is the reason for the error. so im going to try to format the date on the front end instead as i don't like messing with the API too much now.
Describe the bug On creation of an event, the event_date is selected from the form calendar. But when it is saved, the event_date displayed is the created_at date. I'm not sure why yet.
This is since I made a change to the API to change the date format to display it as 4th May 2023 instead of 2023-05-04.
I think i've broken something in the API settings. The Event.js component definately is asking for event_date, and the ones pre-today have the correct event_date set and in the new format as well.
I need to do more testing on this when i have the edit function up and running, which will make it easier to test.
To Reproduce Steps to reproduce the behavior:
Expected behavior Should show the date selected in the create event form
Screenshots
Should be event_date = 26th March 2023, but displaying 4th May 2023, which is when the event was created.
Additional context Add any other context about the problem here.