Added moment to date being stored in localstorage