OJS 3.1.x or 3.2.x
As an “old-fashioned” scientific librarian and former scientist, I have learned and am still of the opinion that the year in a citation is always the publication year of the volume/issue, if the journal is packaged into issues (if not, then it is the publication year of the article).
In this sense, the code in CitationStyleLanguagePlugin.inc.php (lines 355-365 for the stable_3_1_2 branch and lines 357-374 for the master branch) has the wrong logic - it should be the other way round: Issue publication year should get precedence over the article publication year.
We have a case of journal that created an issue in 2019 (correctly as planned), but added articles in early 2020. The citation by the CSL plugins shows 2020 as publication year, but it should be 2019. They don’t want to re-date the publication date of the articles to 2019.
There is not a way to submit an issue in GitHub - pkp/citationStyleLanguage: An OJS 3 plugin to generate an article citation in any CSL citation style using citeproc-php. , that’s why I posted here.