Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 60908 invoked from network); 16 Feb 2010 14:42:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2010 14:42:50 -0000 Received: (qmail 22861 invoked by uid 500); 16 Feb 2010 14:42:49 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 22782 invoked by uid 500); 16 Feb 2010 14:42:49 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 22773 invoked by uid 99); 16 Feb 2010 14:42:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 14:42:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 14:42:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E737B234C48C for ; Tue, 16 Feb 2010 06:42:27 -0800 (PST) Message-ID: <744221743.299531266331347945.JavaMail.jira@brutus.apache.org> Date: Tue, 16 Feb 2010 14:42:27 +0000 (UTC) From: "Bernhard Schauer (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-4626) Wrong Date handling in SimpleTypeMapper In-Reply-To: <1496971823.299501266331228197.JavaMail.jira@brutus.apache.org> 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/AXIS2-4626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bernhard Schauer updated AXIS2-4626: ------------------------------------ Description: Class SimpleTypeMapper Line 113 to 115: } else if (name.equals(W_DATE)) { return makeDate(text); } Line 312 to 314: public static Object makeDate(String source) { return ConverterUtil.convertToDateTime(source).getTime(); } I think the latter should return the result from ConverterUtil.convertToDate(source) not from convertToDateTime. If that is not possible, I'd expect ConverterUtil.convertToDateTime to also accept a date in the format "yyyy-mm-dd" not only in the long 19 character version? or am I wrong here? As Axis2 serializes Date Objects in my case (POJO Webservice) in the "yyyy-mm-dd" format to String, this format should definitely be accepted on clientside in my opinion. was: Class SimpleTypeMapper Line 113 to 115: } else if (name.equals(W_DATE)) { return makeDate(text); } Line 312 to 314: public static Object makeDate(String source) { return ConverterUtil.convertToDateTime(source).getTime(); } I think the latter should return the result from ConverterUtil.convertToDate(source) not from convertToDateTime. If that is not possible, I'd expect ConverterUtil.convertToDateTime to also accept a date in the format "yyyy-mm-dd" not only in the long 19 character version? or am I wrong here? > Wrong Date handling in SimpleTypeMapper > --------------------------------------- > > Key: AXIS2-4626 > URL: https://issues.apache.org/jira/browse/AXIS2-4626 > Project: Axis2 > Issue Type: Bug > Components: databinding > Affects Versions: 1.5.1 > Environment: Not relevant > Reporter: Bernhard Schauer > > Class SimpleTypeMapper > Line 113 to 115: > } else if (name.equals(W_DATE)) { > return makeDate(text); > } > Line 312 to 314: > public static Object makeDate(String source) { > return ConverterUtil.convertToDateTime(source).getTime(); > } > I think the latter should return the result from ConverterUtil.convertToDate(source) not from convertToDateTime. If that is not possible, I'd expect ConverterUtil.convertToDateTime to also accept a date in the format "yyyy-mm-dd" not only in the long 19 character version? or am I wrong here? > As Axis2 serializes Date Objects in my case (POJO Webservice) in the "yyyy-mm-dd" format to String, this format should definitely be accepted on clientside in my opinion. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.