Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix timezone conversion #1433

Merged
merged 3 commits into from
Oct 4, 2023
Merged

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
19 checks passed
@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.

None yet

2 participants