From 4be4ff27096bb29ec0d3202a88ee598e32e1f1af Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Sat, 12 Oct 2024 08:52:53 -0700 Subject: [PATCH] Test standard date display format --- .../labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snprc_ehr/test/src/org/labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java b/snprc_ehr/test/src/org/labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java index 3dfa2c96..1bdae1e5 100644 --- a/snprc_ehr/test/src/org/labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java +++ b/snprc_ehr/test/src/org/labkey/test/tests/snprc_ehr/SNPRC_EHRTest.java @@ -1002,19 +1002,19 @@ public void testClinicalHistoryPanelOptions(){ @Test public void testDateFormat(){ - String dateFormat = "yy-M-d"; - String dateTimeFormat = "yy-M-d H:mm"; - String expectedDate = "16-6-1"; - String expectedTime = "8:58"; + String dateFormat = "dd-MMM-yyyy"; + String dateTimeFormat = dateFormat + "HH:mm:ss.SSS"; + String expectedDate = "01-Jun-2016"; + String expectedTime = "08:58:00.000"; - testDateFormat(dateFormat,dateTimeFormat, expectedDate, expectedTime); + testDateFormat(dateFormat, dateTimeFormat, expectedDate, expectedTime); dateFormat = "yyyy-MM-dd"; dateTimeFormat = dateFormat + " HH:mm"; expectedDate = "2016-06-01"; expectedTime = "08:58"; - testDateFormat(dateFormat,dateTimeFormat, expectedDate, expectedTime); + testDateFormat(dateFormat, dateTimeFormat, expectedDate, expectedTime); }