Forums >Technical Support>Number of days in goal widget off?
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.
2024 Races:
03/09 - Livingston Oval Ultra 6-Hour, 22.88 miles
05/11 - D3 50K 05/25 - What the Duck 12-Hour
06/17 - 6 Days in the Dome 12-Hour.
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
Thanks, Eric. I just checked and everything looks fine now.