diggsweden / dataportal-web

Källkod för dataportal.se
BSD 2-Clause "Simplified" License
19 stars 3 forks source link

Time period containing only year is rendered with time, day and month #37

Open borsna opened 1 year ago

borsna commented 1 year ago

Contact Details

olof.olsson@snd.gu.se

What happened?

If only year is given for a time period its expected to render only the year (from and to). Example rdf-xml:

<dcterms:temporal>
  <dcterms:PeriodOfTime>
    <dcat:startDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010</dcat:startDate>
    <dcat:endDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010</dcat:endDate>
  </dcterms:PeriodOfTime>
</dcterms:temporal>

Steps To Reproduce

  1. Visit https://www.dataportal.se/en/datasets/818_3982/the-national-som-survey-2010
  2. Scroll down to "Time period"

What did you expect?

If only "2010" is given a a date in the source the text version should not asume "Jan 1, 2010 1:00 AM"

Version

No response

Optional Screenshots

image

Relevant log output

No response

MickeA commented 6 months ago

Hi, thank you for reporting improvements. We can see this is still an issue. A ticket has been created in our internal backlog.