Been searching for hours on how to do this. What i want to do is get the current local time by either offset -5, -6 etc or by America/Denver. I tried timezone-ls but maybe im just not doing it right it always comes back with local time. Any help would be appreciated. I know its something like get UTC time then deduct the offset but can't seem to figure it out. I have the offset data just need to know how to use it. Thanks in advance
This would be what i want
var utctime = utctimenow;
var dt = new timezoneJS.Date(utctime, 'America/Denver');
dt would be 8/22/2014 12:53 AM