From 04f055bc6af46171e7b2d05bed291021a59638ce Mon Sep 17 00:00:00 2001 From: Dhruv Batheja Date: Mon, 21 Sep 2020 17:48:16 +0200 Subject: [PATCH 1/3] Timezone fix while deserializing MySQL cell --- .../augmenter/model/format/MysqlTypeDeserializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-replicator-augmenter-model/src/main/java/com/booking/replication/augmenter/model/format/MysqlTypeDeserializer.java b/mysql-replicator-augmenter-model/src/main/java/com/booking/replication/augmenter/model/format/MysqlTypeDeserializer.java index 37fb8229..9e1fde2e 100644 --- a/mysql-replicator-augmenter-model/src/main/java/com/booking/replication/augmenter/model/format/MysqlTypeDeserializer.java +++ b/mysql-replicator-augmenter-model/src/main/java/com/booking/replication/augmenter/model/format/MysqlTypeDeserializer.java @@ -132,7 +132,7 @@ public static Object convertToObject(Serializable cellValue, ColumnSchema column case TIMESTAMP: { Long timestamp = (Long) cellValue; - ZoneId zoneId = ZonedDateTime.now().getZone(); + ZoneId zoneId = ZoneId.of("UTC"); LocalDateTime aLDT = Instant.ofEpochMilli(timestamp).atZone(zoneId).toLocalDateTime(); Integer offset = ZonedDateTime.from(aLDT.atZone(zoneId)).getOffset().getTotalSeconds(); From 9b73b5f056fcc3032b15ca0cbf24ca783ba0357d Mon Sep 17 00:00:00 2001 From: Dhruv Batheja Date: Thu, 24 Sep 2020 15:38:58 +0200 Subject: [PATCH 2/3] Triggering a build after publishing validator snapshot --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e26763f1..cb2c778d 100644 --- a/README.md +++ b/README.md @@ -162,3 +162,4 @@ limitations under the License. [Known Vulnerabilities]:https://snyk.io/test/github/mysql-time-machine/replicator [license]:LICENSE [license img]:https://img.shields.io/badge/license-Apache%202-blue.svg + From 1aaba8babaab26f3b1a7365ba52bb7fa1983dd68 Mon Sep 17 00:00:00 2001 From: Dhruv Batheja Date: Thu, 24 Sep 2020 17:20:19 +0200 Subject: [PATCH 3/3] Triggering a build after publishing validator snapshot --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cb2c778d..a4c629a4 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + [Build Status]:https://travis-ci.org/mysql-time-machine/replicator [Build Status img]:https://travis-ci.org/mysql-time-machine/replicator.svg?branch=master [Coverage Status]:https://codecov.io/gh/mysql-time-machine/replicator