Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author zavaboy

    (@zavaboy)

    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:
      . 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.
    7. Click Update File to save your changes.
    8. Click challonge/class-challonge-shortcode.php.
    9. Find line 299:
      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

    (@hearthmind)

    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

    (@zavaboy)

    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.