In Javascript, given a string representing a date like this one:
var dateFromPrague = "2011-10-10T14:48:00"
And knowing above date is a date from a specific localization, like Europe/Prague, how could I get this date translated to the local hour? I know I can create a Date object indicating timezone offset like this:
var dateFromPrague = new Date("2011-10-10T14:48:00.000+02:00");
Then I could get local date from above date like this:
var dateFromPragueTolocalDate = dateFromPrague.toString();
But Prague offset is not always +02:00 as it depends on DST being applied or not (summer or winter hours). So How could I indicate the right timezone, something like 'Europe/Prague', or achieve this translation some way (returning offset from server is not possible)?