1

Number of days in goal widget off? (Read 44 times)


Are we there yet?

    The goal widget displays one less day than it should, which also throws off the calculations for projected mileage total. Example: today is ?April 3rd, the 93rd day of the year, but my goal widget says it's day 92. My date range is 1/1/14 to 12/31/14. It looks like the widget is calculating the difference in dates and not taking into account that the range includes both end points.

    2016 Goals: Exceed 100K in a 24-Hour race, run more trail races (2 currently scheduled)

      wcrunner2,

      The problem wasn't that I didn't add a day.  It was caused by the way JavaScript represents time.  Even though time is expressed in UTC, it somehow takes daylight savings into account.  The loss of an hour a few weeks ago resulted in a fractional day, which is dropped from the calculation.  I corrected this and the days should be correct again.

       

      eric Smile


      Are we there yet?

        Thanks, Eric. I just checked and everything looks fine now.

        2016 Goals: Exceed 100K in a 24-Hour race, run more trail races (2 currently scheduled)