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
Bedrock Mission!

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

Level 1

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

 

0 Replies

Avatar

Employee Advisor

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