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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -