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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -