US Time to GMT - adjusts for daylight savings time based on system time


I’m still pretty new to this so bear with me. Since I hang out here so much I wanted to contribute something to the community.

I’ve seen several people as about dealing with GMT conversions and different time zones. I tinkered with this off and on over the last few days and this is what I came up with.

Weather data tends to be time stamped in GMT and even after 10 years of storm chasing I still can’t remember if it’s 5,6,7, or 8 hours difference and is is forwards or backwards. So, I tend to timestamp in local and GMT.

I hope someone out there finds this snippet useful.

While I was tinkering with it I also created a json with the time change dates for the next ten years. (for the time being). Feel free to download it and use.



Another way is to use the expression: