fixes typo in TimeSeries and refactored read_time