WordPress.org

Ready to get started?Download WordPress

Forums

My Calendar
[resolved] Bug with weekly view when event dates span two years (3 posts)

  1. MarkLNH
    Member
    Posted 2 years ago #

    I found an issue with the weekly view when the event dates displayed span two years. The layout is incorrect and the events are displayed on the wrong days.
    It can bee seen here:

    http://3bridgesyoga.com/portsmouth-week/

    I made it work by setting all the links on the site to use the year parameter with that link:

    http://3bridgesyoga.com/portsmouth-week/?yr=2012

    Without the parameter, the Next and Previous also break (Next linking to 2014 and Previous linking to December 2013). With the parameter they are correct.

    The problem is in my-calendar-output.php line 637. Without the yr parameter it sets $c_year to the current year, when it seems it should be set to the year of the first event displayed. The individual event times are calculated later in the code, so a good fix requires more familiarity with the code than I have.

    It doesn't seem to affect the monthly view with the same conditions.

    The live site above is using version 2.0.6, but I've tested with 2.1.3 and the issue remains. The site is on WP 3.3.1.

    Thanks.
    Mark

    http://wordpress.org/extend/plugins/my-calendar/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, mark - I learned of this yesterday, and will have a fix published today. Thanks!

  3. MarkLNH
    Member
    Posted 2 years ago #

    Thanks Joe. If there is anything I can do the help, testing or whatever, just let me know.
    Thanks again for the calendar.
    Mark

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic