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: add timezone data to the timestamp #562

Merged
merged 2 commits into from
May 29, 2024

Conversation

ArchiDog1998
Copy link
Contributor

Based on ISO 8601, I added the Time offsets from UTC to the FILE_NAME.

Copy link
Member

@martin1cerny martin1cerny left a comment

Choose a reason for hiding this comment

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

If you want to do this, I'd suggest to use more standard solution with DateTimeOffset and standard ISO 8601 format specifier.

var now = DateTimeOffset.Now;
_timeStamp = string.Format(now.ToString("o"));

@ArchiDog1998
Copy link
Contributor Author

Wow! That looks better! I just added a new commit about it!

@martin1cerny martin1cerny merged commit 7165a5b into xBimTeam:develop May 29, 2024
1 check passed
@martin1cerny
Copy link
Member

Thank you very much for the contribution. It is much appreciated!

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