fix bug when time information was truncated