hi, we have a web application running across different timezones in different countries. but we have a calculation which is sensitive to timezone from where user is trying to access the applications. So how to implement this feature without affecting timezone of the user.
Your question is quite vague and general, so it is hard to give you a specific answer. Keep the following in mind:
Class java.util.Date doesn't know anything about timezones. A Date object refers to a specific instance in time and is stored as the number of milliseconds since 1 January 1970, 12:00 AM UTC.
When you format a Date object for display using for example a java.text.SimpleDateFormat object, then you can set the timezone on the SimpleDateFormat object to determine in which time zone you want the date to be displayed.
ok. let me give some more information - we have an online application running in Australia, US & europe. There is end of day operations which has to be run by USERS at the end of business hours i.e. 6 PM local time of each country and we have to restrict start of operation after 7 PM local time. Considering that application is installed only in US, how to implement this scenario.