javascript:
function calcTime(offset)
{
d = new Date();
utc = d.getTime() + (d.getTimezoneOffset() * 60000);
nd = new Date(utc + (3600000*offset));
document.getElementById('result').value=nd.toLocaleString();
}
Html:
This works on value change... but i want to save value as
but the it is not working if i write PST etc.. What can i do??
Please help

keyurRank #5,481 · 298 reputationPosted Feb 9, 2015, 1:51 AM EST
Can you tell what happen any error you got?
Abc Thakur182 reputationPosted Feb 9, 2015, 1:55 AM EST
keyurRank #5,481 · 298 reputationPosted Feb 9, 2015, 2:00 AM EST
So make common function and pass value "PST","EST" and fetch its offset.
hope this helps
Abc Thakur182 reputationPosted Feb 9, 2015, 2:05 AM EST