Skip to content

Commit

Permalink
Occurrence Import date parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
egbot committed Jun 17, 2020
1 parent dec5e5b commit aa0e326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/OccurrenceUtilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static function formatDate($inStr){
elseif(preg_match('/^([\d-]{1,5})\.{1}([IVX]{1,4})\.{1}(\d{2,4})/i',$dateStr,$match)){
//Roman numerial format: dd.IV.yyyy, dd.IV.yy, dd-IV-yyyy, dd-IV-yy
$d = $match[1];
if(!is_numeric($d)) $d = '00';
$mStr = strtoupper($match[2]);
$y = $match[3];
if(array_key_exists($mStr,self::$monthRoman)){
Expand Down

0 comments on commit aa0e326

Please sign in to comment.