Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C92F318504 for ; Wed, 20 Apr 2016 05:12:25 +0000 (UTC) Received: (qmail 13482 invoked by uid 500); 20 Apr 2016 05:12:25 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 13444 invoked by uid 500); 20 Apr 2016 05:12:25 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 13402 invoked by uid 99); 20 Apr 2016 05:12:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2016 05:12:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7AD532C1F5D for ; Wed, 20 Apr 2016 05:12:25 +0000 (UTC) Date: Wed, 20 Apr 2016 05:12:25 +0000 (UTC) From: "Stefania (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11137) JSON datetime formatting needs timezone MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-11137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15249254#comment-15249254 ] Stefania commented on CASSANDRA-11137: -------------------------------------- I agree with Aleksey, adding a timezone is sufficient for now. > JSON datetime formatting needs timezone > --------------------------------------- > > Key: CASSANDRA-11137 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11137 > Project: Cassandra > Issue Type: Bug > Components: CQL > Reporter: Stefania > Assignee: Alex Petrov > > The JSON date time string representation lacks the timezone information: > {code} > cqlsh:events> select toJson(created_at) AS created_at from event_by_user_timestamp ; > created_at > --------------------------- > "2016-01-04 16:05:47.123" > (1 rows) > {code} > vs. > {code} > cqlsh:events> select created_at FROM event_by_user_timestamp ; > created_at > -------------------------- > 2016-01-04 15:05:47+0000 > (1 rows) > cqlsh:events> > {code} > To make things even more complicated the JSON timestamp is not returned in UTC. > At the moment {{DateType}} picks this formatting string {{"yyyy-MM-dd HH:mm:ss.SSS"}}. Shouldn't we somehow make this configurable by users or at a minimum add the timezone? -- This message was sent by Atlassian JIRA (v6.3.4#6332)