Skip to content

Conversation

demoray
Copy link
Contributor

@demoray demoray commented Oct 3, 2023

The original change in #1431 was built & tested on a machine with the timezone of GMT, which is effectively UTC as it relates to the testing.

In addition to fixing the conversion, this adds a unit test for unix platforms that temporarily changes the TZ environment variable (used for setting the timezone for libc platforms), performs the conversion, then resets the TZ environment variable.

This validates the functionality regardless of the testing environment.

The original change in Azure#1431 was built & tested on a machine with the
timezone of GMT, which is effectively UTC as it relates to the testing.

In addition to fixing the conversion, this adds a unit test for unix
platforms that temporarily changes the `TZ` environment variable (used
for setting the timezone for libc platforms), performs the conversion,
then resets the `TZ` environment variable.

This validates the functionality regardless of the testing environment.
@demoray demoray requested a review from cataggar October 3, 2023 20:30
@demoray demoray merged commit 92f3055 into Azure:main Oct 4, 2023
@demoray demoray deleted the fix-timezone-conversion branch October 4, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants