Visitar URL original
fix: datetime before epoch on windows in cython implementation by yanlend · Pull Request #436 · msgpack/msgpack-python · GitHub
The Wayback Machine - https://web.archive.org/web/20201024075522/https://github.com/msgpack/msgpack-python/pull/436
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: datetime before epoch on windows in cython implementation #436

Merged
merged 1 commit into from Jul 30, 2020

Conversation

@yanlend
Copy link
Contributor

@yanlend yanlend commented Jul 29, 2020

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
Copy link

@codecov-commenter codecov-commenter commented Jul 29, 2020 •

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
Copy link
Contributor Author

@yanlend yanlend commented Jul 29, 2020

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

msgpack/unpack.h Outdated Show resolved Hide resolved
msgpack/unpack.h Outdated Show resolved Hide resolved
msgpack/unpack.h Outdated Show resolved Hide resolved
@yanlend yanlend force-pushed the yanlend:patch_datetime branch from c253aa6 to 86b460a Jul 30, 2020
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.
@yanlend yanlend force-pushed the yanlend:patch_datetime branch from 86b460a to 17f56bd Jul 30, 2020
@methane methane merged commit 8fb709f into msgpack:master Jul 30, 2020
7 of 8 checks passed
7 of 8 checks passed
black
Details
build
Details
build
Details
build
Details
LGTM analysis: C/C++ Analysis failed (could not build the merge commit and the base commit (772c830))
Details
LGTM analysis: Python No new or fixed alerts
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@methane
Copy link
Member

@methane methane commented Jul 30, 2020

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.