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 timestamp cast to datetime #226

Merged
merged 7 commits into from
Dec 17, 2023
Merged

Fix timestamp cast to datetime #226

merged 7 commits into from
Dec 17, 2023

Conversation

AmirShitrit
Copy link
Contributor

@AmirShitrit AmirShitrit commented Dec 16, 2023

The current implicit cast operator from TimeStamp to DateTime uses the DateTime's constructor that accepts ticks as long, but the value of TimeStamp is actuallly milliseconds passed since 01/01/1970.

@AmirShitrit AmirShitrit marked this pull request as ready for review December 16, 2023 19:48
@shacharPash shacharPash added the bug Something isn't working label Dec 17, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (f6a251f) 94.12% compared to head (a033998) 94.12%.

Files Patch % Lines
src/NRedisStack/TimeSeries/DataTypes/TimeStamp.cs 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #226   +/-   ##
=======================================
  Coverage   94.12%   94.12%           
=======================================
  Files          85       85           
  Lines        5178     5178           
  Branches      488      488           
=======================================
  Hits         4874     4874           
  Misses        177      177           
  Partials      127      127           

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

Copy link
Contributor

@shacharPash shacharPash left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@shacharPash shacharPash merged commit f0faa18 into redis:master Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants