fixed some problems with time after 23.59.