Further improved time calculations.
Datepicker improvements.