Fixes a bug with updating timepicker when one being updated isn't the one being displayed.  Also adds support for minTime and maxTime.

I'm not sure how these 'pull request' things here work, but here.