Hi I have one issue in my Laravel Application.
The issue is that Internet Explorer giving wrong time as compare to firefox or chrome in JavaScript.
My JavaScript Code.
console.log(expDate + ' --> ' + new Date(expDate).getTime() + " --> " + $.now());
Its Output in Firefox.
09/25/18 4:31 PM UTC --> 1537893060000 --> 1537875054235
Output in IE.
09/25/18 4:31 PM UTC --> -1617866940000 --> 1537875062939
Can anyone help me that how to resolve the issue. I want that new Date(expDate).getTime()
must give the correct time in all browsers.
Any help will be appreciated.
Thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire