I am creating a ColdFusion application that should display the current time in the number of time zones and was wondering if anyone can tell me how to do this using java.util.TimeZone ?
What I have gathered from various posts / articles:
<cfset timezoneClass = createObject( "java", "java.util.TimeZone" ) /> <cfset pragueZoneId = "Europe/Prague" /> <cfset pragueTimezone = timezoneClass.getTimeZone(javaCast( "string", pragueZoneId )) /> <cfset pragueCalendar = createObject( "java", "java.util.GregorianCalendar" ).init(pragueTimezone) />
I just don't know how to apply the above to get the current time for the time zone. Any help would be greatly appreciated. Thank you
source share