• Resolved bevon11

    (@bevon11)


    i created a match entered the match time but users are able to still make predictions after kick off

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author AntoineH

    (@antoineh)

    Please review your settings. Timezone setting, prediction stop method, etc. The help page in the admin also has info on how the match times work.

    I can not help you without more information. So, if you think all settings are correct, then I need more to be able to help you. E.g. use the debug link in the help file and send me the output for the match that is not working correct.

    Thread Starter bevon11

    (@bevon11)

    I reviewed the setting the kick off for the match is 12:35pm my time users can enter predictions up to the 60 seconds before kick off. I ran the Timezone Debug Info script and it shows that match lock is true and match will be locked at 12:34pm.

    Match: (79) Australia – Argentina
    Match date (database, should be UTC): 2018-05-14 16:35:00
    Match date (local): 2018-05-14 12:35
    Match timestamp (database, should be UTC): 1526315700
    Match is locked: true
    Match was/will be locked at time (local): 2018-05-14 12:34
    WordPress timezone offset: -4
    WordPress timezone string: America/La_Paz
    WordPress current date (local): 2018-05-14 12:59:52
    WordPress current timestamp (local): 1526302792
    WordPress current date (UTC): 2018-05-14 16:59:52
    WordPress current timestamp (UTC): 1526317192
    Plugin prediction stop method matches: 0
    Plugin dynamic stop threshold (in seconds) for matches: 60
    Plugin prediction stop date for matches:
    Plugin prediction stop method questions: 0
    Plugin match time display setting: 0
    PHP current date and time (UTC): 2018-05-14 16:59
    PHP current timestamp (UTC, time()): 1526317192
    PHP current timestamp (UTC, date->format(“U”)): 1526317192
    PHP default timezone setting: UTC
    MySQL current date and time (UTC): 2018-05-14 16:59:52
    MySQL current timestamp (UTC): 1526317192
    MySQL current date and time (local): 2018-05-14 11:59:52
    MySQL global timezone setting: SYSTEM
    MySQL session timezone setting: SYSTEM

    Plugin Author AntoineH

    (@antoineh)

    What is really interesting, is that your database server (mysql) says that the local time is 1 hr earlier than your webserver (PHP):

    WordPress current date (local): 2018-05-14 12:59:52
    MySQL current date and time (local): 2018-05-14 11:59:52

    Not sure yet how this affects my plugin, but I think that first thing you should do, is to contact your hosting provider and ask them to update/sync their server times.

    Thread Starter bevon11

    (@bevon11)

    Ok thanks for the feedback going to reach out to the hosting providing now and see if this helps.

    Thread Starter bevon11

    (@bevon11)

    the hosting provider said they can’t change the global setting.

    Plugin Author AntoineH

    (@antoineh)

    And what reason did they give for having the different times? That is what is really strange in my opinion. One of those times just seems wrong.

    If they are not willing to change, then you can try to change the stop time to 1 hr and 60 sec. See if that helps.
    Still, it looks like a bit of hack for something that should not be needed under normal circumstances.

    (or maybe find a hosting provider that has their server settings correct)

    Thread Starter bevon11

    (@bevon11)

    the reason was if they change the global setting it will affect other clients websites they are hosting. The global setting is universal and not client specific

    Thread Starter bevon11

    (@bevon11)

    i tried setting the cut off time to make predictions an hr and 60 seconds and i can still change the score after kickoff.

    Plugin Author AntoineH

    (@antoineh)

    Can I test some things in your install tonight?

    Thread Starter bevon11

    (@bevon11)

    yes you cAN

    Thread Starter bevon11

    (@bevon11)

    i identified the problem it’s the timezone i am using. I am using lapaz for the wordpress install which keeps the matches open when i use utc-4 the matches are not visible on the prediciton form even though the timezone script shows the match time is 11:30am and threshold is 11:29am. Which is strange because both Lapaz and UTC -4 the local time is the same but behave differently I am stomped with trying to figure out a solution

    • This reply was modified 6 years, 10 months ago by bevon11.
    • This reply was modified 6 years, 10 months ago by bevon11.
    • This reply was modified 6 years, 10 months ago by bevon11.
    Thread Starter bevon11

    (@bevon11)

    Hi i figured it out i had to change match time setting to use utc time and enter the utc equivalent to my time and this prevented users from making changes to prediction after the cut off time. Thank you very much for all your assistance

    • This reply was modified 6 years, 10 months ago by bevon11.

    I currently have the same issue so I’ve had to change the times of all my games to make them one hour earlier so that they match the actual kick off time.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Users Are still able to change predictions after match kick off’ is closed to new replies.