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

Make issuedDate returning date in UTC timezone instead of local for CSL-JSON #142

Merged
merged 1 commit into from
Sep 24, 2022

Conversation

valmaev
Copy link
Contributor

@valmaev valmaev commented Jan 25, 2022

The issue wasn't OS-specific. The problem was that EntryCSLAdapter.issuedDate() returned date in the local time zone which then was converted to UTC in Entry.year() where the timeshift could occur. If the Local time zone was with the positive offset, then this offset was removed (the date is shifted from Jan 01 to Dec 31 of the previous year). Otherwise, the offset was added which didn't year change.

Fixes #40

@hans hans changed the base branch from master to develop September 24, 2022 14:55
@hans hans merged commit 4f34b47 into hans:develop Sep 24, 2022
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.

Wrong year when creating literature notes with template
2 participants