Posted: July 3, 2014 at 5:38 am
|
Hi there, This problem cannot be resolved by changing month to day and vice versa in ical.php since in another event the date is just set to 1/1/1970 – this doesn’t changes with this edit. What can be the problem? Should clearly have to do with European and US date notation, however, notation is set to our standards in the settings. Best, Niels |
|
Hi, Can you check that the event has both a Registration start and end date, as well as an Event start and end date. Can you check what format those appear in the event editor as well please? |
|
Yes, both have and the format set in current date is: 03/07/2014 12:12 See for yourself, date appears ok but in ical link its wrong: |
|
Thanks for that. With one event showing a correct ical and another not, I have to assume it is the date settings. Can you screenshot the date section of the event editor for the event with the issue please? |
|
No, both are wrong http://www.gcsl.eu/agenda/ |
Hi Niels Can you post screenshots of the date section of the event editor for the events please? |
|
|
Hi there, Please find two screenshots here, the first turns around month and day, the second sets at 1-1-1970: Thanks, Niels |
|
Hi, Thanks for the screenshots and the date clarification. I am going to raise a developer ticket to look into this as I am seeing the issue now, EU style dates with slashes seem to be showing an error for some reason. |
Hi Niels, The simplest fix I can share with you is to use d-m-Y instead of d/m/Y. While the WordPress > Settings general page gives d/m/Y as an option, it turns out it’s not a valid date format that can be used with PHP functions. Here is one example from the official PHP documentation for the strtotime function:
from: http://php.net/manual/en/function.strtotime.php After you change the date format to d-m-Y, you will need to re-save the events so that the event meta gets refreshed to use the new format. (The event meta is where the ical dates are pulled from). |
|
|
Dear Josh, Thank for your comprehensive reply, that little change seems to have done the trick. Many thanks, Niels |
The support post ‘iCal changing day to month and vice versa and sometimes showing 1/1/1970’ 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.