GymRatTrax / GymRatTrax-FitnessScheduler

GymRatTrax - Personal Fitness Scheduler
http://gymrattrax.com/
4 stars 1 forks source link

New workout adds extra month #49

Closed chrisstonedev closed 9 years ago

chrisstonedev commented 9 years ago

Steps to reproduce: Go to Edit Schedule Go to New Workout Choose Walking Fill in distance and time Use all default settings (notice it defaults to current date and time) Go back to Edit Schedule Notice that the Month is advanced by a year (e.g. a workout added for 4/23 is added for 5/23)

This is likely caused by the Calendar.MONTH property being 0-based instead of 1-based.

chrisstonedev commented 9 years ago

The fix was even easier than I thought. It's now checked in and unit tested.