updated the way the starttime and endtime is set to fix a bug in binding these properties to a viewmodel
fixed some failing specs