You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Olivier Grisel (JIRA)" <ji...@apache.org> on 2011/02/17 17:46:25 UTC

[jira] Created: (CMIS-309) cmislib should not drop timezone information when reading properties from the repository

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

        

[jira] Updated: (CMIS-309) cmislib should not drop timezone information when reading properties from the repository

Posted by "Olivier Grisel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Grisel updated CMIS-309:
--------------------------------

    Description: 
Datetime properties are parsed with a regular expression in src/cmislib/model.py:

{code:python}
    # 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})?')
{code}

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.

  was:
Datetime properties are parsed with a regular expression in src/cmislib/model.py:

{quote}
    # 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})?')
{quote}

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 time the escaping should work...

> 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:
> {code:python}
>     # 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})?')
> {code}
> 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

        

[jira] Updated: (CMIS-309) cmislib should not drop timezone information when reading properties from the repository

Posted by "Olivier Grisel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Grisel updated CMIS-309:
--------------------------------

    Description: 
Datetime properties are parsed with a regular expression in src/cmislib/model.py:

{code}
    # 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})?')
{code}

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.

  was:
Datetime properties are parsed with a regular expression in src/cmislib/model.py:

{code:python}
    # 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})?')
{code}

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.


python syntax is not supported by jira, sorry tor the spam

> 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:
> {code}
>     # 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})?')
> {code}
> 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