On Thu, 2014-01-09 at 16:30 +0100, Tomas Babej wrote:
> Hi,
> 
> Adds a parameter that represents a DateTime format using datetime.datetime
> object from python's native datetime library.
> 
> In the CLI, accepts one of the following formats:
> Accepts subset of values defined by ISO 8601:
> %Y-%m-%dT%H:%M:%S
> %Y-%m-%dT%H:%M
> '%Y%m%dT%H:%M:%S'
> '%Y%m%dT%H:%M'
> 
> Also accepts LDAP Generalized time in the following format:
> '%Y%m%d%H%M%SZ'
> 
> As a simplification, it does not deal with timezone info and ISO 8601
> values with timezone info (+-hhmm) are rejected. Values are expected
> to be in the UTC timezone.
> 
> Values are saved to LDAP as LDAP Generalized time values in the format
> '%Y%m%d%H%SZ' (no time fractions and UTC timezone is assumed). To avoid
> confusion, in addition to subset of ISO 8601 values, the LDAP generalized
> time in the format '%Y%m%d%H%M%SZ' is also accepted as an input (as this
> is the
> format user will see on the output).
> 
> Part of: https://fedorahosted.org/freeipa/ticket/3306

The date/time syntax formats are not compliant with ISO 8601. You stated
they are expected to be in UTC timezone, but no 'Z' is expected in most
of them. This is not only non-standard, but would prevent you from every
supporting local time in the future.

Nathaniel

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to