This patch fixes elfabi tests on machines using a GMT+X timezone settings.
The discussion of the issue can be seen in D92902.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
jhenderson mentions a different solution in the discussion on D92902. Maybe that's better?
Yes, I'd recommend we use the solution that has been used elsewhere, as that is known to work (I assume, since it's been like that for a while!).
I've subscribed a colleague who has looked at these timezone issues in the past, and was involved in the llvm-ar work, so might have some further insight.
Added env TZ=GMT to force use GMT timezone. Not quite sure if it works on Windows. The default cmd.exe does not seem to support env VAR=VAL pattern to set environment variables.
LGTM - the tests pass on my Windows machine (admittedly it's a GMT timezone machine, but the env part of the link doesn't cause failures at least).
Thanks! I've requested a merge for the LLVM 12 release in https://bugs.llvm.org/show_bug.cgi?id=48917