• For the past week, my calendar has a mind of its own. It randomly changes the times and dates I’ve entered and won’t accept modifications to correct info. Any ideas on what’s happening & how to correct? (It was malfunctioning before the recent upgrade to 5.3.1.)
    Thanks, LuAnn

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • This is also happening to me. Any help would be apprecieated!

    One of my clients has identified a problem where times are shown in summary form and within the record with a 1hr discrepancy. Seems to occur after 1st April 2020. Prior to that it is predictable. I think this plugin was removed from WordPress repository a few years ago. But if anyone has any ideas I would love to hear them. Upgrading to a new calendar system seems to be the best way to go if this one is no longer supported. But then all of the data needs to be re-entered.

    Happening to me too.
    I will add an event on say the 18th and it will place it into the 17th.
    No amount of editing will sort this, neither will deleting and starting again..

    When I click a date to add an event the date in the popup window is set to the day before the day that I have chosen. (WordPress 5.3.2, Plugin Version 1.0.4). Do you have the same issues? Any help?

    Regards, h3ph0z

    Thread Starter LuAnn Faberr

    (@eagcwebmanager)

    After trying for several weeks to resolve this problem I finally dumped the Ajax Event Calendar and switched to The Events Calendar. It doesn’t suit my needs as well, but it became obvious that there is no support for the Ajax calendar plugin and I needed a working calendar for my site. Wish I had a solution for you. Good luck!

    In the main plugin file: ajax_event_calendar.php you will find a function, convert_date()

    in convert_date change

    function convert_date($date, $from, $to=false) {
    			// if date format is d/m/Y, modify token to 'd-m-Y' so strtotime parses date correctly
    			if (strpos($from, 'd') == 0) {
    				$date = str_replace("/", "-", $date);
    			}
    			if ($to) {
    				return date_i18n($to, strtotime($date));
    			}
    			return strtotime($date);
    		}

    To

    function convert_date($date, $from, $to=false) {
    			// if date format is d/m/Y, modify token to 'd-m-Y' so strtotime parses date correctly
    			if (strpos($from, 'd') == 0) {
    				$date = str_replace("/", "-", $date);
    			}
    			if ($to) {
    			    return date($to, strtotime($date));
    			}
    			return strtotime($date);
    		}

    This fixed the times showing up incorrectly for me.

    @sdaland2

    Thanks for sharing your solution! That fixed my problem, too. ??

    wondertrout

    (@wondertrout)

    Ah, this fixed it – champion!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can’t modify calendar events’ is closed to new replies.