1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Posting a poll that closes after "0,5 Hours"

Discussion in 'Resolved Bug Reports' started by dutchbb, Oct 29, 2010.

  1. dutchbb

    dutchbb Well-Known Member

    Probably should give the user some error. ATM the poll is posted and fails to function.
  2. Mike

    Mike XenForo Developer Staff Member

    Well, I've fixed the main part - if you try to enter a closing time of "0 <unit>", it will error. Additionally, I've changed it so that you can enter partial units. 0.5 hours was cast to an integer, meaning 0 hours.

    I should note that you have to enter "0.5" though (not 0,5). Parsing expects a dot for the decimal point (rather standard across most programming languages).
  3. Trombones13

    Trombones13 Well-Known Member

    I tried 0.5 here and it has the same problem (or is 0.5 rounding down to 0?).
  4. Mike

    Mike XenForo Developer Staff Member

    Damn, probably should've said "fixed locally" in this case. The changes aren't live here.

Share This Page