-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot store Date object #92
Comments
+1 |
LS is, after all, just a string storage, so for date we'd have to serialize into string (e.g using ISO8601) and deserialize back when retrieving. A PR would be welcome :) |
Doesn't |
@locks afaik, it's lost once you persist it. There's no transform for the date type. It would be easy tho, date.toISOString() / new Date(isoString) |
Yes. The PR should be simple, though. Anyway who's needing this, please start a PR and we'll guide you through getting it merged :) |
If I store JS Date object, local storage just store '{ }'. Is there any solution to store Date object?
The text was updated successfully, but these errors were encountered: