I have what I am sure is a silly question but I cannot find the answer. I have date string with GMT offsets such as:
"Sun May 28 2017 07:30:00 GMT+0800",
However my current location is GMT+1000, so when I do:
var x = new Date("Sun May 28 2017 07:30:00 GMT+0800");
i get
"Sun May 28 2017 09:30:00 GMT+1000 (AEST)"
How do I cast a string with a GMT offset into a Date object that correctly shows the time? In this example I would need it to be 07:30:00.