giovannicoppola / zothero

Rapidly search and cite Zotero entries from Alfred
MIT License
119 stars 9 forks source link

ZotHero Bibliography export with spurious "0" for items with a date without a day #32

Open johannrichard opened 6 months ago

johannrichard commented 6 months ago

Bibliography exports of items with a date field without a day (i.e. only month & year or only year) create "0" as output in the date part. See below for the difference between an export from Zotero and the ZotHero export:

Zotero Bibliography Export (Chicago Manual of Style 17th edition):

Graham, Paul. 2020. ‘How to Think for Yourself’. November 2020. https://paulgraham.com/think.html.

ZotHero Bibliography Export (Chicago Manual of Style 17th edition, highlight mine):

Graham, Paul. 2020. ‘How to Think for Yourself’. 0 November 2020. https://paulgraham.com/think.html.

Bibliography entry (BibTex)

@online{grahamHowThinkYourself2020,
    title        = {How to {{Think}} for {{Yourself}}},
    author       = {Graham, Paul},
    url          = {https://paulgraham.com/think.html},
    urldate      = {2023-11-13},
    note         = {\subsection{Diverse Interactions: Uncover Marvellous Wonders and Expand Your Worlds}},
    date         = {2020-11}
}