javascript - Cordova js return wrong date time and utc on Android only on specific device -
cordova js code return wrong datetime , utc on android, on specific device (sony xperia e6553). mobile time showing correctly, app showing wrong on particular mobile only. checked date & time auto network time, auto time zone settings correct. code
var d = new date(); var n = d.toutcstring();
returns wrongly :
tue, 29 sep 2015 09:25:28 gmt
but in other mobile showing correct value :
tue, 29 sep 2015 17:55:28 gmt
try using cordova globalization plugin see if helps.
cordova plugin add cordova-plugin-globalization
Comments
Post a Comment