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

Uhh, I have no idea what I'm doing with this pull request or what a "pull request" is.