I am using moment timezone for timezone calculations . All i have some offset data coming from db like GMT,GMT+1,GMT+2,GMT+3,GMT+4 etc
Is their anyway i could get the timezone or timezone name like "America/Los_Angeles" from this data ?
I am using moment timezone for timezone calculations . All i have some offset data coming from db like GMT,GMT+1,GMT+2,GMT+3,GMT+4 etc
Is their anyway i could get the timezone or timezone name like "America/Los_Angeles" from this data ?
I don't mean to be rude, but seriously - How many times and how loudly do I have to shout this?
I mean - it's only in the timezone tag header, and the body of the timezone tag wiki:
...
And it's not like I haven't already answered this question, or this one, or addded it to the best practices doc, or littered what must be hundreds of other posts with "Time Zone != Offset" comments...
I know, maybe I'll go talk about this at a high profile developer conference with "Time Zone != Offset" on my shirt just so it sinks in. Oh wait - done that already too.
Apologies in advance for the snarky answer, but close as duplicate of duplicate of duplicate just wasn't as much fun.
Have you tried http://momentjs.com/timezone/ already ?
Not 100% sure but I think this is what you are looking for.