Convert Javascript Date from UTC to Local Timezone
var strdate = ‘2013/05/03 03:13:00’;
var d = new Date(strdate);
var d = new Date(d.getTime() – d.getTimezoneOffset() * 60 * 1000);
used it with Titanium Appcelerator
Written by iassael on . Posted in android, computing, iOS
var strdate = ‘2013/05/03 03:13:00’;
var d = new Date(strdate);
var d = new Date(d.getTime() – d.getTimezoneOffset() * 60 * 1000);
used it with Titanium Appcelerator
Written by iassael on . Posted in computing
If you are having a problem with Appcelerator Titanium not detecting an iOS SDK while you updated your XCode…
First run this to see the available SDK versions:
xcodebuild -showsdks
And then if it doesnt show up.. select the lastest:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
I was facing this problem with iOS 5.1 …
J.