Skip to content

Commit

Permalink
Fixed unit test is support en_GB locale
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjshore committed Sep 17, 2023
1 parent 4daeb2b commit e69296f
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
Original file line number Diff line number Diff line change
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 e69296f

Please sign in to comment.