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

Support UtcTimestamp for serilog #379

Merged
merged 2 commits into from
May 5, 2023
Merged

Support UtcTimestamp for serilog #379

merged 2 commits into from
May 5, 2023

Conversation

neozhu
Copy link
Owner

@neozhu neozhu commented May 4, 2023

#378
@Bram1903 please review it

@Bram1903 Bram1903 linked an issue May 5, 2023 that may be closed by this pull request
@Bram1903 Bram1903 self-requested a review May 5, 2023 08:03
@Bram1903 Bram1903 added the Enhancement New feature or request label May 5, 2023
@Bram1903 Bram1903 changed the title support UtcTimeStamp for serilog Support UtcTimestamp for serilog May 5, 2023
Copy link
Collaborator

@Bram1903 Bram1903 left a comment

Choose a reason for hiding this comment

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

Looks great! This is certainly a big step in the right direction! I'll be improving from here, so we once might be able to remove AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); altogether, since all our timestamps are in the Coordinated Universal Time. Obviously, we still need to properly convert the time to a client's timezone based on their location, but I'm not too worried about that part.

@Bram1903 Bram1903 merged commit aba62d7 into main May 5, 2023
@Bram1903
Copy link
Collaborator

Bram1903 commented May 5, 2023

#378
@Bram1903 please review it

Just a little tip, if you would like someone to review a certain PR, you can request their review in the top right corner under Reviewers, that person then gets a notification stating "Neozhu has requested your review!", which works really well!

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.

Timezone Conversions
2 participants