vanakat / zotero-link

Obsidian plugin to insert link to Zotero item
MIT License
41 stars 5 forks source link

Month value deviates by -1 #15

Closed yue-dongchen closed 3 weeks ago

yue-dongchen commented 1 month ago

(Zotero 7 API)

{{ date.month }} seems to be zero-based, meaning the correct value is yielded only via {{ date.month + 1 }}. The day and year values are not zero-based.

MunGell commented 3 weeks ago

@dstillman is this a bug or should we account for this behavior in Zotero 7 local API client applications?

dstillman commented 3 weeks ago

What API are you referring to? JS Date month is 0-based.

MunGell commented 3 weeks ago

You are right, sorry for disturbance, issue is in this code.

Should be fixed in 1.6.4