Skip to content

Fixing a rounding issue when converting to Julian date#9

Open
bpenev wants to merge 1 commit intomicrosoft:mainfrom
bpenev:main
Open

Fixing a rounding issue when converting to Julian date#9
bpenev wants to merge 1 commit intomicrosoft:mainfrom
bpenev:main

Conversation

@bpenev
Copy link

@bpenev bpenev commented Jul 19, 2023

There is an issue with the division operations when converting to a Julian date. To achieve the equivalent of integer division, we need to floor each operation. At the moment, the code rounds after the entire calculation. Converting dates in July 2023 moves them one day forward (e.g. 2023-07-01 becomes 2023-07-02).

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.

1 participant

Comments