Differences in Javascript date in XP and OSX -


var d = new date(); var date = d.gettime(); var age = math.floor(date/1000 - time); 

time unix timestap 1434168603 retrieved table.

if console.log(time), both numbers equal on xp , mac osx (chrome). if console.log(date/1000), example 1 1433914098 (rounded) on xp 1434168768 (rounded) on osx, leading incorrect submission time on xp. on osx it's correct.

what causing this?


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -