Patch for The Events Calendar 2.0.2 Date Bug

Published on: December 14, 2011 | Categories: News & Announcements, Products-old, Tutorial

Some under the hood clean-up in TEC 2.0.2 introduced a bug that only occurs in certain circumstances. Generally this bug shows itself when events have been retrieved through WP’s get_posts, instead of the tribe_get_events() function, so the meta-data isn’t retrieved automatically.

Until 2.0.3 is released (with a few other bug fixes) here’s a patch you can apply to fix your date display in the meantime.

The file in question is:


The patched code can be found on pastebin.

Just copy that over your existing file and you should be seeing start & end dates again. The Events Calendar 2.0.3 will include this patch, so you won’t have to worry about patching again.

18 Responses to Patch for The Events Calendar 2.0.2 Date Bug

  1. Mark says

    As someone who ran into this bug, THANK YOU! Fix worked like a charm.

  2. Clifford says

    Same here! YES!

  3. Rob La Gatta says

    Excellent to hear, guys. Thanks for letting us know – Nick gets a gold star for the week :)

    If anything else comes up, or you have anything else you’d like to see a tutorial on, just let us know.

  4. uwes says

    Hi, sorry, but it will not work on my site:

  5. Sam J Levy says

    Thanks, this works

  6. uwes says

    @ Jonah, the order of the listview is not right. You can see it in the link above your replay.

  7. ToFo says

    I have a problem with the calendar… when I try and edit an Event -noe of the data will change. it keeps defaulting back to what I initially put in the fields.
    In other words I can’t change any of the test details I’ve entered

    • Rob La Gatta says

      Hey ToFo, you still having issues here? Are you a PRO user? If so we may be able to address this more quickly if you posted it to the PRO forums. Let me know if not though.

  8. Melody says

    I see that your pastebin link is overloaded? Maybe hacked. I’ll try again later.

    • Rob La Gatta says

      Still having problems here, Melody? This should be functional but let me know if it’s still giving you issues.

  9. Shane Pearlman says

    Just tried the link and it worked for me?

  10. Jeremy says

    like a charm. thanks for the fix.

    • Rob La Gatta says

      Awesome to hear! Thanks for confirming, Jeremy. Let us know what else we can do.

  11. Michael says

    My directory ends at /wp-content/plugins/events-calendar-pro, I have no public folder or date.php. I’ve got template-tags.php, events-calendar-pro.php and the 7 folders. Where do I paste the new code?

  12. Michael says

    Nevermind, I was looking in the pro folder by accident. Problem solved. Thanks for the patch!

    • Rob La Gatta says

      Awesome to hear, Michael – glad you got this resolved. If anything else comes up as you move forward, let us know…we’d be happy to do what we can to assist.