usnistgov / oar-pdr

The NIST Open Access to Research (OAR) Public Data Repository (PDR) system software
11 stars 10 forks source link

Fixed Safari error #210

Closed chuanlin2018 closed 2 years ago

chuanlin2018 commented 2 years ago

http://mml.nist.gov:8080/browse/ODD-1005

This error was because Safari has a strict requirement for the use of date pipe. It was unable to handle the date format in our lastModified field. The easiest fix is to just use the first portion of the field.

To test in Safari, in "Develop" menu choose "Disable Cross-Origin Restriction". Then change "lastModified" to different format and test "http://localhost:4200/od/id/test1":

  1. If no lastModified field, "Last Modified" should not display
  2. If lastModified only has date portion, LP should display as it is
  3. If lastModified has both date and time, LP should only display the date portion.
chuanlin2018 commented 2 years ago

As we discussed, we only display the first 10 digit of the lastModified field.

RayPlante commented 2 years ago

@deoyani Can you review this and confirm that the landing page appears properly on Safari.