• clemensfuhrbach

    (@clemensfuhrbach)


    Hey there,
    recently I have an error in displaying the date. All days are correct in my database, but wrong while created for any display (front-/backend).

    As a quick workaround I replaced line 227 and 237
    $mfgigcal_date .= “<div class=\”day\”>” . date_i18n(“d”, $start_date) . “</div>”;

    with
    $mfgigcal_date .= “<div class=\”day\”>” . $startArray[2] . “</div>”;

    Same in line 244 but there with $endArray
    $mfgigcal_date .= “<div class=\”day\”>” . $endArray[2] . “</div>”;

    As a quick workaround that works for me, however, it would be great if someone has an idea what’s wrong/not working on that spot.

    Cheers
    Clemens

Viewing 6 replies - 16 through 21 (of 21 total)
  • It appears this is a leap year code problem somewhere. Any dates in my schedule before 3/1/2020 appear correctly while those after that date appear 1 day too early. I think this problem only occurred for me after update to 1.0.4 – although there were WordPress updates along the way as well – so that’s another possibility. Currently running WP 5.3.2 with MF Gig Calendar 1.0.4. Is the 1.0.3 version available somewhere so I could try rolling it back?

    Yes, I was thinking leap year might have something to do with it also! In the meantime,I have solved the problem on my site by setting the timezone UTC+12. Now all the dates from March onwards appear on the correct day. Hope that helps you too.

    Thanks royzband! I changed mine to use UTC format time setting and it fixed it for me also!

    Just ran into this when I added a date after March 1, 2020. Will try the workaround…

    I’m seeing the same – added an event for Saturday, Jan 18 (pst), 8 pm – it appears on the website as Friday, Jan 17. Is there a patch coming for this soon?

    I too had success by setting the WordPress timezone UTC+12. Now all the dates from March onward appear on the correct day. Thank you Royzband. I hope this is just a temporary fix and I look forward to the app update which truly corrects the problem.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Wrong Date (Day -1)’ is closed to new replies.