Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-1126

Wal2json ISODateTimeFormatTest fails with a locale other than Locale.ENGLISH

    XMLWordPrintable

Details

    Description

      Tests at io.debezium.connector.postgresql.connection.wal2json.ISODateTimeFormatTest fail with a Locale "es_ES":

      Tests in error:
      ISODateTimeFormatTest.testDate:41 » Connect java.time.format.DateTimeParseExce...
      ISODateTimeFormatTest.testTimestamp:25 » Connect java.time.format.DateTimePars...
      ISODateTimeFormatTest.testTimestampWithTimeZone:35 » Connect java.time.format....

      The error comes from tests using "DateTimeFormat.get().date(String s)" trying to parse a date before the current era as "2016-11-04 BC". "BC" is valid for Locale.ENGLISH but not for "es_ES".

      Attachments

        Activity

          People

            Unassigned Unassigned
            ivan-lorenz Ivan Lorenz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: