Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

sophiag4811594
Community profile sophiag4811594 Level 1
Job title here
Location here
3 BADGES
Level 1

Level 1

Learn more
Joined the community 06-05-2018 8:37:37 PM
Offline
Top badges earned by sophiag4811594
Customize the badges you want to showcase on your profile
Re: How to configure AEM Datepicker to select UTC datetime instead of local datetime
Avatar
Give Back
Level 1
sophiag4811594
Level 1

Likes

2 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Boost 1
View profile
sophiag4811594
- Adobe Experience Manager
Hi Kunwar,Thank you for the above example. As with the example, when I use 'YYYY-MM-DD HH:mm Z' I get the UTC time based on my local timezone, so if the time I specify is '2018-05-07 00:00' my promo start time becomes 2018-05-07 07:00 (May 07th, 2018 7:00 am). I am still seeing the same issue but now we have a workaround to resolve it. Thank you for the prompt reply and support. We really appreciate it!Regards,Sophia

Views

2.6K

Like

1

Replies

0
Re: How to configure AEM Datepicker to select UTC datetime instead of local datetime
Avatar
Give Back
Level 1
sophiag4811594
Level 1

Likes

2 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Boost 1
View profile
sophiag4811594
- Adobe Experience Manager
Hi Kunwar,I tried the above changes and I am still not getting the UTC time for the promo start time. For example, when I give the promo start time as May 07, 2018 12:00 am, the time I get with onTime.getTime() is 1525676400 which is May 07, 2018 7:00 am. This means that the datepicker is aware of my local timezone and is applying the offset based on my local system timezone. I want the promo start time that I get at the backend to be May 07, 2018 12:00 am. I don't want the datepicker to apply a...

Views

2.6K

Like

1

Replies

0
How to configure AEM Datepicker to select UTC datetime instead of local datetime
Avatar
Give Back
Level 1
sophiag4811594
Level 1

Likes

2 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Boost 1
View profile
sophiag4811594
- Adobe Experience Manager
Hi,I am using AEM datepicker (granite/ui/components/coral/foundation/form/datepicker) for our Promo component. This is injected into backend java.util.Calendar instance, where we have additional logic for the component. When the date is selected while authoring the page, the datepicker is setting the datetime in local time instead of UTC time. I need the date to be in UTC time. Here are the properties that I have used for datepicker: jcr:primaryType="nt:unstructured" sling:resourceType="granite/...

Views

4.8K

Likes

0

Replies

6
Likes from