Posted: November 27, 2014 at 3:24 am
Hi, I have 87 events and need to backup/restore my site. On doing this the date format has been reversed from d/m/yr to the US format of m/d/yr which has now hidden most of my event sale start dates. Is there an easy way of fixing this? I initially had tried to export all my events a .csv format to remove one line of text from all my events and on deleting my events and re-importing I got an error on importing Date/Time Event Created[EVT_created]. That’s why I did the restoration. Any ideas? |
|
Hi Philip, How did you backup/restore the events? Did you use a full database backup or export the events them import then? |
|
Hi Tony, |
|
Initially when I had selected all events and exported them, I opened them up excel, (deleted the line of text from each event I didn’t need) saved as a .csv and tried to import into event espresso, which recognised I was trying to import into the same database, and failed on importing Date/Time Event Created[EVT_created]. |
|
This was the error message on importing the normal way: CSV Data appears to be from the same database, so attempting to update data |
|
So you created your events, exported them to CSV, restored to a backup with no events, then imported the events once again? What is set within Dashboard -> General Settings -> Date format? Is it possible for you to link me to the site so I can what is happening? |
|
Hi Tony, I created my events, exported them, thrashed (and then finally deleted them) and then imported them using the EE import tool. This created the error. So I then restored the website from a backup I had made (using managewp.com): The General settings: Date Format is Date Format November 27, 2014 (Custom: November 27, 2014). The events will not show on the front end as the the event sale start date has changed as a result. Do you need access to the back-end? http://www.avalonrc.ie/wordpress/event-category/athlone-courses/ |
|
That may be easier. If you can use this form to send temporary login details: https://eventespresso.com/send-login-details/ I’ll see what I can find. |
|
Form sent. Thanks |
|
Updating this thread with the current findings for any future readers. The reason the events switched the days and months is was due to the file being edited within MS Excel. When the events are exported they use the MySQL date format which is YYYY-MM-DD. However when you open up the CSV in MS Excel it will automatically format the date to (usually) DD-MM-YYYY, we had some code in place to try and continue with the imports by checking if the date format had changed and tried to use MM-DD-YYYY then if that also failed DD-MM-YYYY. The problem with this (besides Excel not allowing you to disable this auto format) is that events like 05/12/2014 cause problems, was that intended as December 5th or May 12th? So considering MS Excel is likely the most used Spreadsheet editor, we are considering swapping this check to first check for DD-MM-YYYY. Currently to avoid this issue do not use MS Excel to edit the CSV files, the auto date format function can not be disabled so will always cause this problem (it also appears that the date format may possibly change depending on you location settings). OpenOffice appears to leave the dateformat as is and causes no issues, also using a text editor such as Sublime Text will also preserver the current date. The other error when importing events the normal way is a bug within the event importer that we have a ticket to address in a future version. The import function is checking for details within the CSV (the site URL) and if it matches your currently URL, or a URL that has previously imported events, it will try to update the events with the new values within the CSV, if the events have been deleted, this fails. |
|
Hi Tony, P.S. Within the Events, the events are not associated with their original Event Categories either. |
|
The support post ‘Event Dates Formats reversed on backup restoration – Version 4.4.3.p’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.