WordPress.org

Ready to get started?Download WordPress

Forums

PHPLeague
Correct Timezone (3 posts)

  1. shadow777
    Member
    Posted 1 year ago #

    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/

  2. mikaweb
    Member
    Plugin Author

    Posted 1 year ago #

    You can insert it on your config file for instance.

  3. shadow777
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.