do not apply twice the decimal part during date conversion to gregorian calendar

#54 Merged at 022771b
Repository
openpyxl-jdcal-jump
Branch
default
Repository
openpyxl
Branch
2.2
Author
  1. Eric Gazoni
Reviewers
Description

there is a miscalculation happening when you're nearing midnight (e.g. 23:59:59.999999), but not quite there yet (e.g. the decimal part of the julian date rounds to the next day), jdcal will round to the next day, but openpyxl would apply the full decimal part, adding 23:59:59.99999.

This fix neutralizes openpyxl when jdcal has already done the "jump"

Comments (3)

  1. Eric Gazoni author

    well, to be honest, it was as fix for 2.1.4, but I think it can go straight in 2.2, people interested in the actual hotfix can use my fork.