%schedule_end% outputting the todays date

WordPress Event Management, Calendars & Registration Forums Report A Bug %schedule_end% outputting the todays date

This topic contains 3 replies, has 2 voices, and was last updated by  Rob Mackley 11 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3595

    Hi, I’m trying to use the event list widget to show the date of the first and last Occurrence. However, when I use the shortcode %schedule_end% it just outputs today’s date.

    I have a show that is on for two hours each evening from 26 Feb > 2nd March so I have set a Start date of: 26-02-2013
    End date of: 02-03-2013
    Occurrence daily until 02-01-2013

    But today (22nd Feb) the widget is outputting
    26 Feb > 22 Feb 2013

    Is this a bug or am I doing something wrong?

    You can see a dev version of the site here: http://malvern.phenixmedia.co.uk/
    Look in the ‘Upcoming events’ for Joseph And The Amazing Technicolor Dreamcoat. It says: 26 February 2013 > 22 February 2013 but if you click on the event you can see it is set to end on the 2nd March.

    Many thanks.

    Rob Mackley
    #3608

    Hi Rob,

    There is a bug with both %schedule_end% and %schedule_last% tags. I’ve opened a ticket, with a description of the bug and a potential (untested) fix here. I’ll be waiting for my laptop to be repaired before releasing 1.7.4 but this will be part of it.

    Thanks for reporting it!

    Stephen Harris
    #3610

    Thanks for posting the fix to this. Please could you let me know where to add the fix code as detailed here: https://github.com/stephenharris/Event-Organiser/issues/48

    Many thanks.

    Rob Mackley
    #3613

    Sorry stephenharris

    I have just seen your link to the code:

    https://github.com/stephenharris/Event-Organiser/blob/1.7.3/classes/class-eventorganiser-shortcodes.php#L215

    I’ve added your fix to class-eventorganiser-shortcodes.php and apart from a missing : after case ‘schedule_last’ this fix works perfectly.

    Thank you so much.
    Rob.

    Rob Mackley
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.