Skip to content

Commit

Permalink
Merge pull request #3893 from tomjshore/fix_am_pm_unit_test
Browse files Browse the repository at this point in the history
Fixed unit test is support en_GB locale
  • Loading branch information
katzyn committed Sep 18, 2023
2 parents 4daeb2b + e69296f commit 12b314d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h2/src/test/org/h2/test/db/TestFunctions.java
Expand Up @@ -1557,7 +1557,7 @@ private void testToCharFromDateTime() throws SQLException {
assertResult("34", stat, "SELECT TO_CHAR(X, 'SS') FROM T");
assertResult("29554", stat, "SELECT TO_CHAR(X, 'SSSSS') FROM T");
expected = new SimpleDateFormat("h:mm:ss aa").format(timestamp1979);
if (Locale.getDefault().getLanguage().equals(Locale.ENGLISH.getLanguage())) {
if (Locale.getDefault().equals(Locale.US)) {
assertEquals("8:12:34 AM", expected);
}
assertResult(expected, stat, "SELECT TO_CHAR(X, 'TS') FROM T");
Expand Down

0 comments on commit 12b314d

Please sign in to comment.