Skip to content

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

@borsna

Description

@borsna

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions