Plugin Update – Event Dates Revert to Jan 1, 1970 with start/end time

Home Forums Calendar Products Events Calendar PRO Plugin Update – Event Dates Revert to Jan 1, 1970 with start/end time

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #223440
    yohogdes
    Participant

    I 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/ybSyZ1zW

    When 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!

    #229347
    Casey
    Participant

    yohogdes,
    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-

    #237607
    yohogdes
    Participant

    For 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/

    #238091
    Casey
    Participant

    Thanks 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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Plugin Update – Event Dates Revert to Jan 1, 1970 with start/end time’ is closed to new replies.