Fix time issues, removes hardcoded value, reads from localStorage