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

Minor improvement of spec.AsTimestamp #447

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

mdnight
Copy link
Contributor

@mdnight mdnight commented Jan 22, 2025

It is a bit safer to convert time.Time using a standard t.UnixMilli() method rather than t.UnixNano() / 1000000

Pull Request Checklist

Signed-off-by: Roman Isaev <[email protected]>

it's safer to convert time.Time using a standard "t.UnixMilli()" method instead of "t.UnixNano() / 1000000"
@mdnight mdnight changed the title minor refactoring of spec.AsTimestamp Minor refactoring of spec.AsTimestamp Jan 22, 2025
@mdnight mdnight changed the title Minor refactoring of spec.AsTimestamp Minor improvement of spec.AsTimestamp Jan 25, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.43%. Comparing base (0a1b2ba) to head (8a87dcb).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #447      +/-   ##
==========================================
+ Coverage   59.40%   59.43%   +0.02%     
==========================================
  Files          51       51              
  Lines        7257     7257              
==========================================
+ Hits         4311     4313       +2     
+ Misses       2546     2544       -2     
  Partials      400      400              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@S7evinK S7evinK left a comment

Choose a reason for hiding this comment

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

Thanks!

@S7evinK S7evinK merged commit 9b4a950 into matrix-org:main Jan 27, 2025
5 checks passed
@mdnight mdnight deleted the astimestamp_refactoring branch January 27, 2025 19:26
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.

3 participants