diff --git a/symmetric-jdbc/src/main/java/org/jumpmind/db/platform/postgresql/PostgreSqlDatabasePlatform.java b/symmetric-jdbc/src/main/java/org/jumpmind/db/platform/postgresql/PostgreSqlDatabasePlatform.java index 99db737e77..6a7eb1d174 100644 --- a/symmetric-jdbc/src/main/java/org/jumpmind/db/platform/postgresql/PostgreSqlDatabasePlatform.java +++ b/symmetric-jdbc/src/main/java/org/jumpmind/db/platform/postgresql/PostgreSqlDatabasePlatform.java @@ -307,7 +307,13 @@ public List getTransactions() { String adjustedTime; if (startTime != null) { int decimalIndex = startTime.indexOf("."); - int timezoneIndex = startTime.length() - 3; + int timezoneIndex = startTime.indexOf("+"); + if (timezoneIndex == -1) { + timezoneIndex = startTime.indexOf("Z"); + if (timezoneIndex == -1) { + timezoneIndex = startTime.lastIndexOf("-"); + } + } adjustedTime = StringUtils.rightPad(startTime.substring(0, Math.min(decimalIndex + 4, timezoneIndex)), 3, "0") + startTime.substring(timezoneIndex); } else {