sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Sedding <jsedd...@gmail.com>
Subject Re: [DISCUSS] Support ZonedDateTime in ValueMap
Date Thu, 04 Jul 2019 10:09:06 GMT
Thanks Robert.

I've created SLING-8558 for tracking the change in ValueMapDecorator
(API) and JcrValueMap (JCR Resource) for now.

Regards
Julian

On Tue, Jul 2, 2019 at 12:05 PM Robert Munteanu <rombert@apache.org> wrote:
>
> On Tue, 2019-07-02 at 12:01 +0200, Julian Sedding wrote:
> > Hi all
> >
> > I think it might make sense to support getting dates from ValueMaps
> > as
> > java.time.ZonedDateTime instances directly. I've been finding myself
> > converting Calendar instances after retrieving them from ValueMaps
> > quite a bit lately.
>
> Sounds good to me. Some notes:
>
> - calendar instances also have time zones attached, so we don't
> introduce anything suprising by returning dates with time zones
> attached.
> - we don't bump up the required JVM version as ZonedDateTime is
> available with Java >= 8.
>
> Robert
>

Mime
View raw message