• Resolved weepingtiger

    (@weepingtiger)


    Hello Antoine,

    I have noticed that users can change predictions after the match has started, but before it is closed. I have a delay of 900 seconds, which should force predictions 15 mins before the match starts but it doesn’t seem to be working. I have also used the extension to hide closed matches, but that hasn’t help, I guess because the match is not closed yet?

    I also see that after the match has started, the countdown clock starts counting up. I have used the ‘next’ parameter, which does work but not while the current match remains open?

    Hopefully, that makes sense?

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

    (@antoineh)

    You have to check your time(zone) settings. Please check the help page, it contains tips how to resolve this.

    Thread Starter weepingtiger

    (@weepingtiger)

    Fantastic, that has helped.

    I set my site to UTC+0 and the plugin to the same and the live game has disappeared.

    However, the countdown is still counting up from the start time of the game that’s currently on? I am using this:

    [fp-countdown match=”next” texts=” ;? ; ; “]

    Match: (1) Turkey - Italy
    Match date (database, should be UTC): 2021-06-11 20:00:00
    Match date (local): 2021-06-11 20:00
    Match timestamp (database, should be UTC): 1623441600
    Match is locked: true
    Match was/will be locked at time (local): 2021-06-11 19:45
    WordPress timezone offset: 0
    WordPress timezone string: 
    WordPress current date (local): 2021-06-11 19:54:17
    WordPress current timestamp (local): 1623441257
    WordPress current date (UTC): 2021-06-11 19:54:17
    WordPress current timestamp (UTC): 1623441257
    Plugin prediction stop method matches: 0
    Plugin dynamic stop threshold (in seconds) for matches: 900
    Plugin prediction stop date for matches: 
    Plugin prediction stop method questions: 0
    Plugin match time display setting: 0
    PHP current date and time (UTC): 2021-06-11 19:54
    PHP current timestamp (UTC, time()): 1623441257
    PHP current timestamp (UTC, date->format("U")): 1623441257
    PHP default timezone setting: UTC
    MySQL current date and time (UTC): 2021-06-11 19:54:17
    MySQL current timestamp (UTC): 1623441257
    MySQL current date and time (local): 2021-06-11 20:54:17
    MySQL global timezone setting: SYSTEM
    MySQL session timezone setting: SYSTEM

    Appreciate your help.

    Jim

    Plugin Author AntoineH

    (@antoineh)

    Looks like the times in the database are wrong. Those have to be entered in UTC times. Then you can set your timezone setting in WP to a correct value (e.g. Amsterdam, I prefer the city names instead of the number offset).

    Correct output of the script (for timezone Amsterdam) is:

    Match: (1) Turkey - Italy
    Match date (database, should be UTC): 2020-06-11 19:00:00
    Match date (local): 2020-06-11 21:00
    Thread Starter weepingtiger

    (@weepingtiger)

    Perfect. All sorted now. Thanks again.

    Enjoy the tournament!

    Hoi Antoine,

    Ik kwam erachter dat ik ook de verkeerde tijden ingevoerd had bij de wedstrijden. Ipv utc tijden had ik gewoon lokale tijden ingevoerd.
    Nu aangepast en wordpress tijdinstelling op Amsterdam gezet.
    Nu zie ik echter bij wedstrijden gewoon de utc tijden staan. Is dat aan te passen naar de lokale tijden?

    Plugin Author AntoineH

    (@antoineh)

    Check even je plugin settings. Daar heb je een optie voor tijdweergave. Die moet op de WP timezone setting staan.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Users can change predictions once match has started’ is closed to new replies.