Hi,
I am using the local notifications plugin on my app.
It works pretty fine when it comes to setting the notifications.
But I am a little confused with the way the returned at field works.
When I schedule the notification I used the momentjs plugin and did the following for the at parameter of the schedule call
this.localNotifications.schedule({
"id": 1,
"text": "test notification",
"at": moment("05 Sep 2017").toDate()
})
Now if I use the getAll method to get the notifications then the value that is set for the “at” parameter is
“at”: 1504602000
When I pipe it through moment, this is the date value that I get.
1970-01-18T09:56:42.000Z
This is pretty much the case for every other date value that I set using the both moment and default Date type of javascript. I am not sure where the issue is.
My guess is the returned value in “at” is a date format that I don’t understand. Can some one please explain the format of the date value returned by the “at” field in the getAll() method.
Cheers,
SD