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

chore(update): update cal lib and date adapter (DSP-1758) #309

Merged
merged 2 commits into from Jun 23, 2021

Conversation

tobiasschweizer
Copy link
Contributor

resolves DSP-1758

@tobiasschweizer tobiasschweizer self-assigned this Jun 22, 2021
@tobiasschweizer
Copy link
Contributor Author

@gautschr Could you try to choose the BC date which had the wrong number of days in February ?

@tobiasschweizer tobiasschweizer changed the title chore(update): update cal lib and date adapter chore(update): update cal lib and date adapter (DSP-1758) Jun 22, 2021
@gautschr
Copy link
Contributor

They work now!
Bildschirmfoto 2021-06-22 um 17 52 07

@@ -262,8 +262,8 @@ describe('ValueService', () => {

const period = calDateJDN.toJDNPeriod();

expect(period.periodStart).toEqual(1721060);
expect(period.periodEnd).toEqual(1721060);
expect(period.periodStart).toEqual(1721058);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gautschr I had to adapt these expectations.

The Gregorian calendar date of January 1st 1 BCE used to be 1721060 in JDN, now it is 1721058.
Since the date is before 1582, it was calculated like a Julian calendar date, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes!

@@ -262,8 +262,8 @@ describe('ValueService', () => {

const period = calDateJDN.toJDNPeriod();

expect(period.periodStart).toEqual(1721060);
expect(period.periodEnd).toEqual(1721060);
expect(period.periodStart).toEqual(1721058);
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes!

@tobiasschweizer tobiasschweizer merged commit 020b080 into main Jun 23, 2021
@tobiasschweizer tobiasschweizer deleted the wip/dsp-1758-cal-lib branch June 23, 2021 07:32
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.

None yet

3 participants