Issue 18271

Dataset temporal (date) end ranges are rounded down, not up

18271
Reporter: mblissett
Type: Bug
Summary: Dataset temporal (date) end ranges are rounded down, not up
Priority: Minor
Status: Open
Created: 2016-02-26 11:52:29.193
Updated: 2016-02-26 11:52:29.193
        
Description: If we receive something like this:

{code:xml}

 
  
   2003
  
  
   2003
  
 

{code}

Both dates are converted to 2003-01-01.  Either the endDate should be 2003-12-31, or the year-only precision should be maintained (if it's allowed).

This is shown on the portal as "Date range: 01-Jan-2003 - 01-Jan-2003"

Example: http://www.gbif.org/dataset/ed6ee121-1b4c-4382-bd4d-2128aa47c202]]>