Title: Tournament date
Last modified: August 21, 2016

---

# Tournament date

 *  Resolved [Hearthmind](https://wordpress.org/support/users/hearthmind/)
 * (@hearthmind)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/tournament-date/)
 * When signing up for the tournament through the widget, it shows the date of the
   tournament as the following day. Is there a way to change/remove the date?
 * [https://wordpress.org/plugins/challonge/](https://wordpress.org/plugins/challonge/)

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

 *  Plugin Author [zavaboy](https://wordpress.org/support/users/zavaboy/)
 * (@zavaboy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/tournament-date/#post-5049615)
 * This issue has to do with your timezone. The further you are from UTC time, the
   more likely you will see this issue. I have been somewhat aware that there was
   an issue with the date/times but I haven’t investigated it until now. Thank you.
   🙂
 * Fortunately, I already have a fix ready for my next release. However, I’m planning
   to make my release once the Spanish translation of my plugin is ready, which 
   may still be awhile.
 * If you don’t want to wait, here’s how to fix the issue yourself:
    1.  Got to **Plugins** > **Editor**.
    2.  Select **Challonge** from the dropdown and click **Select**.
    3.  Click **challonge/class-challonge-plugin.php** from the right side.
    4.  Find [line 247](https://github.com/zavaboy/challonge-wp/blob/f4ce17cc9ef76847919234593bafee3c1901c5de/class-challonge-plugin.php#L247):
        `.
        date_i18n( get_option( 'date_format' ), strtotime( $tourny->{'created-at'} )).'
        | '`
    5.  Change line 247 to this:
         `. date_i18n( get_option( 'date_format' ), strtotime(
        substr( $tourny->{ 'created-at' }, 0, -6 ) . '+00:00' ) ) . ' | '`
    6.  Do the exact same thing to [line 272](https://github.com/zavaboy/challonge-wp/blob/f4ce17cc9ef76847919234593bafee3c1901c5de/class-challonge-plugin.php#L272).
    7.  Click **Update File** to save your changes.
    8.  Click **challonge/class-challonge-shortcode.php**.
    9.  Find [line 299](https://github.com/zavaboy/challonge-wp/blob/f4ce17cc9ef76847919234593bafee3c1901c5de/class-challonge-shortcode.php#L299):
        `
        strtotime( $tourny->{ 'created-at' } )`
    10. Change line 299 to this:
         `strtotime( substr( $tourny->{ 'created-at' }, 0,-
        6 ) . '+00:00' )`
    11. Click **Update File** to save your changes.
 * That’s it! You should now see the correct date.
 * Once again, thank you for the feedback! 🙂
 *  Thread Starter [Hearthmind](https://wordpress.org/support/users/hearthmind/)
 * (@hearthmind)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/tournament-date/#post-5049686)
 * Thank you! That will show the date when the tournament was made. Since there’s
   no way to display when the tourney is going to take place, how would I take the
   date out completely?
 * EDIT: Nevermind, that was an easy fix, I figured it out 🙂
 *  Plugin Author [zavaboy](https://wordpress.org/support/users/zavaboy/)
 * (@zavaboy)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/tournament-date/#post-5049826)
 * This has been corrected in the latest update (1.1.4) and is planned to allow 
   for more flexibility in the following update (1.1.5).
 * Thanks! 🙂

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

The topic ‘Tournament date’ is closed to new replies.

 * ![](https://ps.w.org/challonge/assets/icon.svg?rev=1044546)
 * [Challonge](https://wordpress.org/plugins/challonge/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/challonge/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/challonge/)
 * [Active Topics](https://wordpress.org/support/plugin/challonge/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/challonge/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/challonge/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [zavaboy](https://wordpress.org/support/users/zavaboy/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/tournament-date/#post-5049826)
 * Status: resolved