bpiwowar/papercite — Issue #32: Sorting by year bug (and fix)
Author: petrosb
Created: 2012-02-09 00:17:49+00:00
State: open

When you sort by by date, (using sort=year as a parameter) the current version has an issue with moth entries of the form "November 30-December 3" (or variations of this, such as "November 30--December 3"). These entries are common for conference publications, if the conference span crosses the end of a month. To fix this replace:

$date_stamp = strtotime($month);

in l.98 of bib2tpl/helper.inc.php with:

$date_stamp = strtotime(strtok($month,'-'));