jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCR-3171) jcr:created property on node has wrong time zone set
Date Tue, 06 Dec 2011 18:57:40 GMT

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

Alexander Klimetschek resolved JCR-3171.
----------------------------------------

    Resolution: Not A Problem

That's correct. The JCR date does not store the full timezone ID (such as "Europe/Prague")
in your example, but only the offset. This is because internally the date is stored as ISO
8601 string, which does not keep the ID [0].

Hence after reading that string again, it will use the simple offset based IDs, such as GMT+01:00
in your case.

[0] http://www.day.com/specs/jcr/2.0/3_Repository_Model.html#3.6.4.3%20From%20DATE%20To
                
> jcr:created property on node has wrong time zone set
> ----------------------------------------------------
>
>                 Key: JCR-3171
>                 URL: https://issues.apache.org/jira/browse/JCR-3171
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.2.9
>         Environment: Linux
>            Reporter: Marek Slama
>            Priority: Minor
>
> I would expect that default time zone is set when jcr:created property is created by
Jackrabbit for node. But I see following:
> Default time zone: sun.util.calendar.ZoneInfo[id="Europe/Prague",offset=3600000,dstSavings=3600000,useDaylight=true,transitions=141,lastRule=java.util.SimpleTimeZone[id=Europe/Prague,offset=3600000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]]
> Time zone from Calendar instance: sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
> Is it possible to control time zone set to property jcr:created? Any hint where time
zone is set for jcr:created property would be appreciated so that I can investigate in my
environment.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message