Patch for The Events Calendar 2.0.2 Date Bug
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:
/wp-content/plugins/events/public/template-tags/date.php
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.



As someone who ran into this bug, THANK YOU! Fix worked like a charm.
Same here! YES!
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.
Hi, sorry, but it will not work on my site: http://www.statz-fotografie.de/events/bevorstehend/
Hi uwes, what exactly is the problem?
@ Jonah, the order of the listview is not right. You can see it in the link : http://www.statz-fotografie.de/events/bevorstehend/
Thanks, this works
@ Jonah, the order of the listview is not right. You can see it in the link above your replay.
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. http://pauseinjoy.com/?tribe_events=test-event-001
In other words I can’t change any of the test details I’ve entered
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.
I see that your pastebin link is overloaded? Maybe hacked. I’ll try again later.
Still having problems here, Melody? This should be functional but let me know if it’s still giving you issues.
Just tried the link and it worked for me?
like a charm. thanks for the fix.
Awesome to hear! Thanks for confirming, Jeremy. Let us know what else we can do.
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?
Nevermind, I was looking in the pro folder by accident. Problem solved. Thanks for the patch!
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.