saving currentTime in localStoragte