Let's create a file that will display the time zone for the current context:
1. In your
<Railo Intall Directory>/webroot/
, create a file calledserver_timezone.cfm
.2. In that file, enter the following code:
<cfoutput>#getTimeZone()# #Now()#</cfoutput>
3. Let's copy this file to our second context located in
<Railo Intall Directory>/webroot2/
.4. If you now go to
http://localhost:8888/server_timezone.cfm
, you should see your local time zone, for example, mine displays:America/New_York {ts '2011-09-16 13:08:10'}
5. If you now go to your second context by going to
http://site2.local:8888/server_timezone.cfm
, you should also see:America/New_York {ts '2011-09-16 13:10:27'} (or at least the same as was displayed in your first context).
6. Let's set the server context and see what happens. In your browser, go to
http://site2.local:8888/railo-context/admin/server.cfm
and log in (or enter a new password and confirm it if it hasn...