Let's say my Windows server application runs in an Eastern Time zone (NY).
I convert and store every datetime event (the moment they happen) in UTC, so that any client app that connects to the server reads the event's UTC time and converts and displays it in client's own TZ.
But here's the tricky part, some events report their timestamp in another state's time and doesn't explicitly specify daylight saving info (e.g. xx:xx:xx AM PT, meaning Pacific Time but I don't know if its currently in daylight saving time).
The server could check if it's in daylight saving period but that would be for server's own TZ (which is Eastern Time). The best I could come up with is to read the server's local daylight saving info and use that for PT as well but I know that's not 100% accurate. Especially thru the short window when ET has just started (or stopped) using daylight saving and PT has still hours to do so.
Now my question is, is there a way (in Windows API) to accurately find out about another time-zone's daylight saving status no matter which time zone the server app resides?
Edit: ok, how do I convert this to UTC "Sun, Mar 13, 2016 1:15 AM PT", from a Windows machine that runs in Eastern Time? (note that this date/time particularly selected when the running machine (in ET) is in DST at the moment and date/time to be converted is not just yet in DST. I have the UTC conversion covered but couldn't figure out if the given date/time is in DST or not.