Fix localStorage time value retrieval