Support » Plugin: PHPLeague » 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
    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author 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



    * 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.