kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ewe...@apache.org
Subject [kafka] branch 2.0 updated: KAFKA-7460: Fix Connect Values converter date format pattern
Date Mon, 01 Oct 2018 02:52:31 GMT
This is an automated email from the ASF dual-hosted git repository.

ewencp pushed a commit to branch 2.0
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.0 by this push:
     new be74944  KAFKA-7460: Fix Connect Values converter date format pattern
be74944 is described below

commit be7494452cccd417f1007fc14381ef7dc74a7207
Author: Amit Sela <amitsela33@gmail.com>
AuthorDate: Sun Sep 30 19:51:59 2018 -0700

    KAFKA-7460: Fix Connect Values converter date format pattern
    
    Switches to normal year format instead of week date years and day of month instead of
day of year.
    
    This is directly from #4820, but separated into a different JIRA/PR to keep the fixes
independent. Original authorship should be maintained in the commit.
    
    Author: Amit Sela <amitsela33@gmail.com>
    
    Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>
    
    Closes #5718 from ewencp/fix-header-converter-date-format
    
    (cherry picked from commit c1457be99555063b774db61f526fd0c059721c69)
    Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
---
 connect/api/src/main/java/org/apache/kafka/connect/data/Values.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/connect/api/src/main/java/org/apache/kafka/connect/data/Values.java b/connect/api/src/main/java/org/apache/kafka/connect/data/Values.java
index d643aa2..f705dcc 100644
--- a/connect/api/src/main/java/org/apache/kafka/connect/data/Values.java
+++ b/connect/api/src/main/java/org/apache/kafka/connect/data/Values.java
@@ -69,7 +69,7 @@ public class Values {
     private static final String FALSE_LITERAL = Boolean.TRUE.toString();
     private static final long MILLIS_PER_DAY = 24 * 60 * 60 * 1000;
     private static final String NULL_VALUE = "null";
-    private static final String ISO_8601_DATE_FORMAT_PATTERN = "YYYY-MM-DD";
+    private static final String ISO_8601_DATE_FORMAT_PATTERN = "yyyy-MM-dd";
     private static final String ISO_8601_TIME_FORMAT_PATTERN = "HH:mm:ss.SSS'Z'";
     private static final String ISO_8601_TIMESTAMP_FORMAT_PATTERN = ISO_8601_DATE_FORMAT_PATTERN
+ "'T'" + ISO_8601_TIME_FORMAT_PATTERN;
 


Mime
View raw message