Fix the timestamp timezone in tracing in Windows (dotnet/core-setup#5049)
authorVitek Karas <vitek.karas@microsoft.com>
Tue, 29 Jan 2019 09:08:53 +0000 (01:08 -0800)
committerGitHub <noreply@github.com>
Tue, 29 Jan 2019 09:08:53 +0000 (01:08 -0800)
commit21d58ec9b161e60af2eb82361bd98e685b317dce
tree9b151bd6ed858a3985ac2ec7f10b87d51f867d72
parent4350361f0cbefb6be642261add9151ac6cb7b5b6
Fix the timestamp timezone in tracing in Windows (dotnet/core-setup#5049)

It seems that printing out timezone information for a tm structure on Windows always shows the local timezone, even if the tm is returned by gmtime.
The simplest fix seems to be to simply print out GMT always, after all gmtime always returns GMT time.
This also makes the output match Linux formating as Windows otherwise uses verbose zone names, while Linux uses abbreviations.

Commit migrated from https://github.com/dotnet/core-setup/commit/ed4f73a931bb8111a40995d3581acfd4ce0217d5
src/installer/corehost/common/pal.windows.cpp