vivo-project / VIVO

VIVO is an extensible semantic web application for research discovery and showcasing scholarly work
http://vivoweb.org
BSD 3-Clause "New" or "Revised" License
206 stars 129 forks source link

VIVO-1972: xsd:dateTime with Z is not displayed correctly in interface #3558

Open chenejac opened 3 years ago

chenejac commented 3 years ago

Georgy Litvinov (Migrated from VIVO-1972) said:

dateTime with UTC (Z at the end) is not displayed correctly:

chenejac commented 3 years ago

Georgy Litvinov said:

Removing Z from seconds with something like .replace("Z","") will show it properly in

https://github.com/vivo-project/Vitro/blob/6b612316eedf2c1783a1c4b85c08be99cea1b22a/webapp/src/main/webapp/templates/freemarker/edit/forms/js/defaultDataPropertyUtils.js#L162

Matching regexp should have Z? to match UTC dateTime in

https://github.com/vivo-project/Vitro/blob/6b612316eedf2c1783a1c4b85c08be99cea1b22a/webapp/src/main/webapp/templates/freemarker/body/partials/individual/propStatement-dataDefault.ftl#L35