Fixed bug in time axis conversion