Fixed the previousTime to display on LCD