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.
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.
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
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.