You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Seelmann (JIRA)" <ji...@apache.org> on 2008/07/13 19:01:32 UTC

[jira] Updated: (DIRSTUDIO-293) Values of attributes of the syntax 'Generalized Time' must have the g-time-zone 'Z' and minutes and seconds set to be interpreted and shown as a date instead of the raw value

     [ https://issues.apache.org/jira/browse/DIRSTUDIO-293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seelmann updated DIRSTUDIO-293:
--------------------------------------

    Fix Version/s:     (was: 1.2.0)
                   1.3.0

Postpone to 1.3.0. We have to create a converter between LDAP timestamp format and Java Date/Calendar format.

> Values of attributes of the syntax 'Generalized Time' must have the g-time-zone 'Z' and minutes and seconds set to be interpreted and shown as a date instead of the raw value
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSTUDIO-293
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-293
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-ldapbrowser
>    Affects Versions: 1.0.1, 1.1.0
>         Environment: Gentoo Base System release 1.12.11.1;
> Linux o309 2.6.23-gentoo-r8o309 #1 PREEMPT Mon Feb 25 15:31:40 CET 2008 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux;
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03);
> Apache Directory Studio 1.1.0.v20080303
>            Reporter: Linus van Geuns
>            Assignee: Stefan Seelmann
>            Priority: Minor
>             Fix For: 1.3.0
>
>
> 1.) Create some entry in your directory containing an attribute of the syntax 'Generalized Time'
> 2.) Set that to a value containing the 'g-time-zone' 'Z' and vlues for 'minute' and 'second', eg '20080309234300Z'
> 3.) When viewing the entry in the LDAP browser this value will be interpreted as a date and shown as '09.03.2008 23:45 CET (..'
> 4.) Now remove the 'second' or replace the 'g-time-zone' with eg '+02'
> 5.) When viewing the entry in the LDAP browser after changing it according to (4.) only the raw value for the 'Generalized Time' will be shown.
> According to RFC4517 §3.3.13, the syntax 'Generalized Time' only requires values for 'century', 'year', 'month', 'day' and 'hour' plus the 'g-time-zome' which can be 'Z' or a 'g-differential' ((+/-)hour[minute]) representing a local time zone, so the LDAP browser should be able to interpret those values.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Updated: (DIRSTUDIO-293) Values of attributes of the syntax 'Generalized Time' must have the g-time-zone 'Z' and minutes and seconds set to be interpreted and shown as a date instead of the raw value

Posted by Alex Karasulu <ak...@apache.org>.
I think I have something that does this in shared-ldap.  Take a look at
this:


http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java?view=markup

Might not be exactly what you like.  Will add these comments to the issue as
well.

Alex

On Sun, Jul 13, 2008 at 1:01 PM, Stefan Seelmann (JIRA) <ji...@apache.org>
wrote:

>
>     [
> https://issues.apache.org/jira/browse/DIRSTUDIO-293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Stefan Seelmann updated DIRSTUDIO-293:
> --------------------------------------
>
>    Fix Version/s:     (was: 1.2.0)
>                   1.3.0
>
> Postpone to 1.3.0. We have to create a converter between LDAP timestamp
> format and Java Date/Calendar format.
>
> > Values of attributes of the syntax 'Generalized Time' must have the
> g-time-zone 'Z' and minutes and seconds set to be interpreted and shown as a
> date instead of the raw value
> >
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> >
> >                 Key: DIRSTUDIO-293
> >                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-293
> >             Project: Directory Studio
> >          Issue Type: Bug
> >          Components: studio-ldapbrowser
> >    Affects Versions: 1.0.1, 1.1.0
> >         Environment: Gentoo Base System release 1.12.11.1;
> > Linux o309 2.6.23-gentoo-r8o309 #1 PREEMPT Mon Feb 25 15:31:40 CET 2008
> i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux;
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03);
> > Apache Directory Studio 1.1.0.v20080303
> >            Reporter: Linus van Geuns
> >            Assignee: Stefan Seelmann
> >            Priority: Minor
> >             Fix For: 1.3.0
> >
> >
> > 1.) Create some entry in your directory containing an attribute of the
> syntax 'Generalized Time'
> > 2.) Set that to a value containing the 'g-time-zone' 'Z' and vlues for
> 'minute' and 'second', eg '20080309234300Z'
> > 3.) When viewing the entry in the LDAP browser this value will be
> interpreted as a date and shown as '09.03.2008 23:45 CET (..'
> > 4.) Now remove the 'second' or replace the 'g-time-zone' with eg '+02'
> > 5.) When viewing the entry in the LDAP browser after changing it
> according to (4.) only the raw value for the 'Generalized Time' will be
> shown.
> > According to RFC4517 §3.3.13, the syntax 'Generalized Time' only requires
> values for 'century', 'year', 'month', 'day' and 'hour' plus the
> 'g-time-zome' which can be 'Z' or a 'g-differential' ((+/-)hour[minute])
> representing a local time zone, so the LDAP browser should be able to
> interpret those values.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>


-- 
Microsoft gives you Windows, Linux gives you the whole house ...