angular-local-storage icon indicating copy to clipboard operation
angular-local-storage copied to clipboard

Error to handle date

Open Falci opened this issue 10 years ago • 0 comments

If we try store an object that contains a Date, we will get a string when try to read the value:

localStorageService.set('key', {date: new Date()});
localStorageService.get('key'); // {date: "2015-07-23T22:14:30.123Z"}

Falci avatar Jul 24 '15 01:07 Falci