1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

As Designed Event Close Date Earlier than Open Date

Discussion in 'Sportsbook Resolved Bug Reports' started by SneakyDave, Apr 18, 2013.

Thread Status:
Not open for further replies.
  1. SneakyDave

    SneakyDave Member Sportsbook

    Are there supposed to be any checks for the event Close Date?

    Right now, I can create an event with a close date prior to the open date, create outcomes for it, change its status from "pending" to "open", and place bets on the outcomes although the close date has already past.

    Does a cron update fix these, or is this as designed?
     
  2. Bob

    Bob Developer Staff Member

    CRON will close that event when it runs. By default, CRON runs every 5 minutes. You can increase that if you want to, but 5 minutes is ample checking time IMO. Its not a BUG, its as designed.
     
    SneakyDave likes this.
  3. Bob

    Bob Developer Staff Member

    If you want, I can add a preSave check to the Event DataWriter to not allow you to change an event status to OPEN if the Close date is in the past. I don't THINK that would cause other problems.. will test tho. At least that would prevent the above from even happening lol
     
    SneakyDave likes this.
  4. SneakyDave

    SneakyDave Member Sportsbook

    It's not a big deal, but I guess a condition could exist where an event is technically closed, and somebody could place a bet on it?

    Your fix would work, or put a check in with the close date when the event is displayed, to change it to "awaiting settlement", or when a wager is placed on it?
     
  5. Bob

    Bob Developer Staff Member

    I've added in a bunch of new date/time validation stuff tonight to prevent certain things from happening because of WEB CRON not being the most effective time management tool.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.