Home › Forums › Calendar Products › Events Calendar PRO › Plugin Update – Event Dates Revert to Jan 1, 1970 with start/end time
- This topic has 3 replies, 2 voices, and was last updated 12 years ago by
Casey.
-
AuthorPosts
-
June 13, 2014 at 9:47 am #223440
yohogdes
ParticipantI recently updated the plugins to their most recent versions (event cal, PRO, and eventbrite tickets) and found there is an issue that I can’t seem to resolve. When I display a list of the upcoming events via a WP query the dates default to January 1, 1970. After some testing I noticed that this is ONLY the case IF a start and end time are set when creating (or editing) an event. If the event is set to “All Day” the date displays properly.
Here is the page where the dates should be displayed: http://23.229.196.116/what-its-like-to-be-a-foster-parent/ (see sidebar “Upcoming Classes”)
If you notice there is an event called Test Event 1 that is displaying a date of June 21, 2014.. this is working as intended as it is selected as an “all day” event.
The query that displays these events is as follows:
http://pastebin.com/ybSyZ1zWWhen viewing the actual event or the calendar ( http://23.229.196.116/events/category/event/ ) the event date and time display correctly. Can you provide any guidance? This worked as intended before updating.
Thank you!
June 16, 2014 at 7:05 am #229347Casey
Participantyohogdes,
Thanks for getting in touch and sorry to hear you’re having trouble here, but hopefully I can help. It looks like on line #24 you’re calling tribe_get_start_date() and then converting it. I would suggest just outputting the results of the tribe_get_start_date() function directly, and make sure you specify a date format. I would try that and see if that helps fix the issue.Unfortunately, that’s the only guidance I’m going to be able to provide here, since this is a customization specific to your site, but hopefully that points you in the right direction.
Good luck and thanks! 🙂
-Casey-
June 20, 2014 at 2:43 am #237607yohogdes
ParticipantFor anyone looking for help with this issue, check out Tribe’s documentation article here: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-date-functions/
June 20, 2014 at 6:43 am #238091Casey
ParticipantThanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.
By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://m.tri.be/lo
Thanks in advance. 🙂
Cheers,
Casey -
AuthorPosts
- The topic ‘Plugin Update – Event Dates Revert to Jan 1, 1970 with start/end time’ is closed to new replies.
