We have a Timezone specific to User which is fetched from the database.
Date now = Calendar.getInstance().getTime();
This is a method of Date_Time class of Java 1.5 API which takes systemdate and timezone and checks if the systemdate falls under Day Light Time period. If it falls then convert the systemdate accordingly to its equivalent day light.
This method picks up the timezone of the system in which it is executed. As per requirement we need to pass the Users timezone to this method overriding what it now takes as the system's timezone. Can we implement this and how?
Can you elaborate what exactly do we acheive with the code snippet that you have provided? As per comments on Locale variables they are generally used for language preference or in case of country names. How do we associate them(Locale) with respect to timezones?