fixed bug where localstorage parses date value into string