Forum @ meandmymac.net » Events

%endtime% returns start time - fix included

(2 posts)
  • Started 2 months ago by rodsherwin
  • Latest reply from arnan
  • This topic is not a support question

Tags:

  1. I noticed that the %endtime% tag was returning the start time and when I went hunting through the code I found the every line in wp-events-functions.php that set %endtime% actually referenced $event->thetime rather than $event->theend
    e.g.
    $template = str_replace('%endtime%', str_replace('00:00', '', utf8_encode(strftime($events_config['timeformat'], $event->thetime))), $template);

    instead of

    $template = str_replace('%endtime%', str_replace('00:00', '', utf8_encode(strftime($events_config['timeformat'], $event->theend))), $template);

    Good ol' cut and past error I suspect.

    Regards,
    Rod

    Posted 2 months ago #
  2. i guess.. it did work in earlier versions.. *sigh*

    bah i'm sloppy lately :(

    Thanks for reporting!

    Woohoo!
    check out http://meandmymac.net
    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.