WordPress.org

Support

Support » Plugins and Hacks » Correct Timezone

Correct Timezone

  • You said that

    “There are 2 errors in the script phpleague-front.php

    1) line 268, 313, 330: the row:
    if (date(‘Y-m-d’) >= $row->played)
    must be modified in:
    if (date(‘Y-m-d H:i:s’) >= $row->played)

    2) it is necessary to include the line
    date_default_timezone_set(‘Europe/Rome’);
    to have a correct Timezone.

    I need to know
    in which line of phpleague-front.php i have to insert date_default_timezone_set(‘Europe/Rome’); ??

    Thank you

    http://wordpress.org/extend/plugins/phpleague/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mikaweb

    @mikaweb

    You can insert it on your config file for instance.

    I’ve tried to insert date_default_timezone_set(‘Europe/Rome’); it in phpleague-front.php at the top after the <?php

    “<?php

    date_default_timezone_set(‘Europe/Rome’);

    /*
    * This file is part of the PHPLeague package.
    *……. “

    is it an error?
    I’ve also replaced (date(‘Y-m-d’) with
    if (date(‘Y-m-d H:i:s’) and the scores of matches are updated in the frontend by the system exactly when i update them in backend,so anyway it works

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Correct Timezone’ is closed to new replies.