Title: Correct Timezone
Last modified: August 21, 2016

---

# Correct Timezone

 *  [shadow777](https://wordpress.org/support/users/shadow777/)
 * (@shadow777)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/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/](http://wordpress.org/extend/plugins/phpleague/)

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

 *  Plugin Author [mikaweb](https://wordpress.org/support/users/mikaweb/)
 * (@mikaweb)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/correct-timezone/#post-3947953)
 * You can insert it on your config file for instance.
 *  Thread Starter [shadow777](https://wordpress.org/support/users/shadow777/)
 * (@shadow777)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/correct-timezone/#post-3947956)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/phpleague_464e2f.svg)
 * [PHPLeague](https://wordpress.org/plugins/phpleague/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/phpleague/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/phpleague/)
 * [Active Topics](https://wordpress.org/support/plugin/phpleague/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/phpleague/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/phpleague/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shadow777](https://wordpress.org/support/users/shadow777/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/correct-timezone/#post-3947956)
 * Status: not resolved