Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I did but it would work for this plugin.
    I’m not sure but I think this code

    date('m/j/Y')

    was taking from the server directly when I’m in complete different countries so the time was off. By changing that line of code, I made it include the gmt_offset which was set by WP and Automatic Timezone.

    I was having the same problem and just fixed it.

    Open ec_calendar.class.php
    Do a search for

    if ("$month/$day/$year" == date('m/j/Y'))

    and replace it with

    if ( $day == gmdate('j', (time() + (get_option('gmt_offset') * 3600))) && $month == gmdate('m', time()+(get_option('gmt_offset') * 3600)) && $year == gmdate('Y', time()+(get_option('gmt_offset') * 3600)) )

    Several people I read were having the same issue so I tried to fix it myself and it seems to work.

Viewing 2 replies - 1 through 2 (of 2 total)