Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 56146 invoked from network); 17 Feb 2011 16:46:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2011 16:46:49 -0000 Received: (qmail 70937 invoked by uid 500); 17 Feb 2011 16:46:49 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 70696 invoked by uid 500); 17 Feb 2011 16:46:46 -0000 Mailing-List: contact chemistry-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-dev@incubator.apache.org Received: (qmail 70666 invoked by uid 99); 17 Feb 2011 16:46:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 16:46:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 16:46:45 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 25A081ABF66 for ; Thu, 17 Feb 2011 16:46:25 +0000 (UTC) Date: Thu, 17 Feb 2011 16:46:25 +0000 (UTC) From: "Olivier Grisel (JIRA)" To: chemistry-dev@incubator.apache.org Message-ID: <1691274594.3247.1297961185150.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (CMIS-309) cmislib should not drop timezone information when reading properties from the repository MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 cmislib should not drop timezone information when reading properties from the repository ---------------------------------------------------------------------------------------- Key: CMIS-309 URL: https://issues.apache.org/jira/browse/CMIS-309 Project: Chemistry Issue Type: Bug Components: python-cmislib Affects Versions: 0.2.0-incubating Reporter: Olivier Grisel Datetime properties are parsed with a regular expression in src/cmislib/model.py: # This seems to be the common pattern across known CMIS servers # It is essentially ISO 8601 without the microseconds or time zone offset timeStampPattern = re.compile('^(\d{4}\-\d{2}\-\d{2}T\d{2}:\d{2}:\d{2})?') This pattern is used by the `parseDateTimeValue(value)` function line 3878 in model.py. Ignoring the timezone information makes it impossible to work correctly when the client and the server are not in the same timezone or when the client is moving from one timezone to another. This is especially useful when trying to detect whether the document has been recently updated on the server or not. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira