chenejac / VIVOTestMigration

0 stars 0 forks source link

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

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]