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

fetching current date and time on the order history page with respective of the country selected on the configuration page.

Avatar

Avatar
Ignite 1
Level 1
jyotis64274550
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Ignite 1
View profile

Avatar
Ignite 1
Level 1
jyotis64274550
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Ignite 1
View profile
jyotis64274550
Level 1

12-03-2020

Hi team,

1.Create Component that has dropdown of all countries.

2. If we select one of the country from the dropdown then that country's current date and time should reflect on the configuration page.

jyotis64274550_0-1583997389463.png

3. When we place an order then after order gets placed the current date and time should be of the same country which we configured on the configuration page.

jyotis64274550_1-1583997558936.png

Issue is: on the order history page it is reflecting Indian current date and time by default but i want this date and time should be of Israel country as i have selected this country in my configuration page. 

Can anybody please help me to resolve this ? Please share some articles if you have 

 

Thanks 

Jyoti S

 

Replies

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,111 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,111 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

13-03-2020

First of all, I don't think that this is a AEM-specific question.

 

Next, there are many countries which span more than 1 timezone, thus there is no "country specific time" (probably easiest example: The US spans over 4 timezones). You need to provide a timezone to format the date/time correctly.

Now you need to decide how you map country and timezone in this specific business context.

 

regards,

Jörg