usnistgov / oar-pdr

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

Fix/odd1016 safari bug #224

Closed chuanlin2018 closed 2 years ago

chuanlin2018 commented 2 years ago

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

The problem was caused by Date.parse() function. Safari does not like "2017-01-01 00:00:00". Have to put a "T" between date and time: "2017-01-01T00:00:00".

The test1 sample in environment.ts has been modified for the testing of this case. To test, run app locally and browse http://localhost:4200/od/id/test1 using Chrome and Safari. Both should display the following line in version section: There is a more recent release of this resource available: 1.0.2

Screen Shot 2021-11-16 at 2 14 51 PM