Skip to content

fix: datetime before epoch on windows in cython implementation#436

Merged
methane merged 1 commit into
msgpack:masterfrom
yanlend:patch_datetime
Jul 30, 2020
Merged

fix: datetime before epoch on windows in cython implementation#436
methane merged 1 commit into
msgpack:masterfrom
yanlend:patch_datetime

Conversation

@yanlend

@yanlend yanlend commented Jul 29, 2020

Copy link
Copy Markdown
Contributor

Cython implementation still used datetime.from_timestamp method, which does not work on windows.
Update the cython implementation to use utc time and delta
and add a regression test to highlight the issue.

@codecov-commenter

codecov-commenter commented Jul 29, 2020

Copy link
Copy Markdown

Codecov Report

Merging #436 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #436   +/-   ##
=======================================
  Coverage   88.07%   88.07%           
=======================================
  Files           5        5           
  Lines         847      847           
=======================================
  Hits          746      746           
  Misses        101      101           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 772c830...17f56bd. Read the comment docs.

@yanlend

yanlend commented Jul 29, 2020

Copy link
Copy Markdown
Contributor Author

Not sure what is wrong in the C/C++ analysis. Please help me and I will fix it.

Comment thread msgpack/unpack.h Outdated
Comment thread msgpack/unpack.h Outdated
Comment thread msgpack/unpack.h Outdated
Cython implementation still used datetime.from_timestamp method, which does not work on windows.
Update the cython implementation to use utc time and delta
and add a regression test to highlight the issue.
@methane
methane merged commit 8fb709f into msgpack:master Jul 30, 2020
@methane

methane commented Jul 30, 2020

Copy link
Copy Markdown
Member

Thank you!

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