From 2ed4b5741d5ae6b51db1a79769475df688a0fa69 Mon Sep 17 00:00:00 2001 From: cameroncaci Date: Sat, 9 Dec 2023 17:43:47 -0500 Subject: [PATCH] updated zulu --- pom.xml | 2 +- .../milmove/handler/TransportationAccountingCodesHandler.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 755e7cb..a016e71 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ com.milmove.trdmlambda trdm-lambda - 1.0.0.9 + 1.0.0.10 trdm java spring interface Project for deploying a Java TRDM interfacer for TGET data. diff --git a/src/main/java/com/milmove/trdmlambda/milmove/handler/TransportationAccountingCodesHandler.java b/src/main/java/com/milmove/trdmlambda/milmove/handler/TransportationAccountingCodesHandler.java index 17f749c..07a5433 100644 --- a/src/main/java/com/milmove/trdmlambda/milmove/handler/TransportationAccountingCodesHandler.java +++ b/src/main/java/com/milmove/trdmlambda/milmove/handler/TransportationAccountingCodesHandler.java @@ -107,9 +107,9 @@ private XMLGregorianCalendar getOurLastTGETUpdate(String tableName) Timestamp lastUpdatedTimestamp = rs.getTimestamp("rds_last_updated"); // Convert our last update pulled from the db into XML Gregorian Calendar - // friendly format ending in "Z" for Zulu. X should auto assume Z + // friendly format ending in "Z" for Zulu. SimpleDateFormat xmlUnfriendlyLastUpdateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSSSS"); - SimpleDateFormat xmlFriendlyLastUpdateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'X'"); + SimpleDateFormat xmlFriendlyLastUpdateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); xmlFriendlyLastUpdateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); Date date = xmlUnfriendlyLastUpdateFormat.parse(lastUpdatedTimestamp.toString());