Skip to content

Conversation

@noahingh
Copy link
Member

No description provided.

@noahingh noahingh added the enhancement New feature or request label Dec 25, 2021
Comment on lines +18 to +23
if s.Location != nil {
loc = s.Location
}

origLoc := t.Location()
t.In(loc)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the location of t when it evaluates the next time, and revert the location when it returns.

@noahingh noahingh marked this pull request as ready for review December 25, 2021 09:35
@noahingh noahingh merged commit 5822783 into main Dec 25, 2021
@noahingh noahingh deleted the custom-timezone branch December 25, 2021 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants