I am adding a Events to a site in Drupal 7 with Date, Calender module and a few others.
When I looked at the Content Type (Events) I had created and wanted to fill in some test events I found that the Date filed showed the date in mm-dd-yyyy format - but I need dd-mm-yyyy.
So I went to http://www.example.com/admin/config/regional/date-time and changed the date settings to what I needed in long, medium and short.
But the date field in the Content Type (Events) did not change. I looked up and down www.drupal.org and the search engines to find an answer - but was not able to find what I was looking for.
So, I added some more date fields and they turned out correct.
Ergo, the answer is - once the date field has been set the at that time current date format is stored & locked. Later date format changes will not effect them.
Solution - delete the field with the unwanted formatting and create a new date field under the correct date format setting.
Sure - if you have added data already to a site or if you realise that you need to make the changes on a life site you'll have a bid of a headache exporting nodes and re-formatting the dates before re-importing them into a new Content Type.
..........
Comments
Easy fix in field settings
Hi,
I came across the same problem today. However, there is an easier solution available. I'll post the solution here just in case someone else bumps into this problem: