I use this test script to see that all parsing is happening correctly:

<?php
 date_default_timezone_set('UTC');
$dates = array(
  "1999",
  "1999 Jan",
  "1999 Mar 6",
  "1999 Mar-Jun",
  "2005 Nov 21-27",
);
foreach ($dates as $date) {
  apachesolr_biblio_format_value($date, 'date');
}
CommentFileSizeAuthor
#2 ab-followup.patch1.38 KBrobertdouglass
ab.patch6.33 KBrobertdouglass

Comments

robertdouglass’s picture

Status: Needs review » Fixed
robertdouglass’s picture

StatusFileSize
new1.38 KB

Followup patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit f24f404 on 6.x-1.x, 7.x-1.x by robertDouglass:
    #640486 by robertDouglass Fix timezone handling and date parsing.
    
    
  • Commit d9f4a80 on 6.x-1.x, 7.x-1.x by robertDouglass:
    #640486 by robertDouglass Fix timezone handling and date parsing.