WordPress.org

Ready to get started?Download WordPress

Forums

WP Calendar
{events_calendar} time behind 4 hours (7 posts)

  1. briankeith68
    Member
    Posted 4 years ago #

    Time zone in WP is set for New York time. Widget list ov events shows correctly. Calendar view does not.
    Can the calendar events be a clickable link to bring you to that post?

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

  2. Matachin
    Member
    Posted 4 years ago #

    Same here.
    Calendar view shows wrong time,

    briankeith68 it's in UTC-4 timezone and times appears wrong by 4 hours.

    I'm in UTC+2 an time is wrong by 2 hours.

  3. timshawn
    Member
    Posted 4 years ago #

    I have same problem.
    Anyone figure out a fix yet?

  4. mikemotorcade
    Member
    Posted 4 years ago #

    It looks like the graphical calendar (fullcalendar) has some sort of problem with timezones. The dates are all stored properly, but the timezone info seems to get dropped when the dates are passed to fullcalendar. I can't figure out if the bug is in wp calendar or fullcalendar. Thoughts? Anyone been able to fix this? This is a pretty serious bug for me.

  5. faebu
    Member
    Plugin Author

    Posted 4 years ago #

    i cannot reproduce this error. could somebody change the following lines in fsCalendar.php (~Line 295):

    $e['start'] = $evt->tsfrom; //date_i18n('c', $evt->tsfrom);
    $e['end'] = $evt->tsto; //date_i18n('c', $evt->tsto);

    with

    $e['start'] = date('c', $evt->tsfrom);
    $e['end'] = date('c', $evt->tsto);

    and report if this solves the problem? Make sure u have php5!

    Thanks!

  6. mikemotorcade
    Member
    Posted 4 years ago #

    Thanks faebu! That solved the problem! You are a life saver!

  7. faebu
    Member
    Plugin Author

    Posted 4 years ago #

    great! i just released V1.1.2 with a patch for this issue!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic