?
Solved

Timezone setting wrong on CF9 Server

Posted on 2011-03-03
6
Medium Priority
?
886 Views
Last Modified: 2013-12-24
I need to set the timezone in the jvm arguments to EST.  How can i do that?  I have been reading about setting the -Duser.timezone.  I am not sure how to set it
0
Comment
Question by:theideabulb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 2000 total points
ID: 35033833
The best way is to edit your jvm.config file add it to the jvm arguments section.  Make a backup copy first! For single server installs the file's located: C:\ColdFusion9\runtime\bin\jvm.config)


# Arguments to VM
java.args=-server -Xmx512m -Duser.timezone="your tz ID goes here"  ... other settings

http://forums.adobe.com/thread/552963?tstart=0
0
 
LVL 5

Expert Comment

by:TIGERMARK
ID: 35033835
In the administrative console, click Environment > WebSphere Variables\ .
Select the server for which you want to set the time zone value from the list of scope options.
Set a value for the TZ variable.
If the TZ variable is included in the list of defined variables, click TZ, and then specify a new time zone value in the Value field.

If the TZ variable is not included in the list of defined variables, click New, and then specify TZ in the Name field, and the appropriate time zone value in the Value field.

For example, if you specify TZ in the Name field, and EST5EDT in the Value field, Eastern Daylight Savings is used as the time zone setting for all of your server processes.

Click Apply, and then click Save to save your changes.
Stop and restart all of the affected application server that were running when you made the time zone changes.
0
 
LVL 5

Expert Comment

by:TIGERMARK
ID: 35033839
You can pass the JVM this param -Duser.timezone, for example -Duser.timezone="Europe/Sofia" and this should do the trick. Setting the environment variable TZ might also help
use the JDK DST Timezone Update Tool - 1.3.25 (tzupdater) and then change the JVM parameter,the timezone information is stored by Windows in some registry
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 52

Expert Comment

by:_agx_
ID: 35033847
For example if you wanted to use PST, find the jvm.config file. Append "-Duser.timezone=America/Los_Angeles" to the beginning of the jvm args. Then restart CF.

# Arguments to VM
java.args=-server -Xmx512m -Duser.timezone=America/Los_Angeles -Dsun.io.useCanonCaches=false  (... rest of arguments ...)

Open in new window


To confirm the time zone was applied using:
<cfset tz = createObject("java", "java.lang.System").getProperty("user.timezone") >
<cfdump var="#tz#">
<cfdump var="#now()#">

Open in new window


Results:
America/Los_Angeles
(current date and time)

0
 
LVL 52

Assisted Solution

by:_agx_
_agx_ earned 2000 total points
ID: 35033933
set the timezone in the jvm arguments to EST.

Oops, missed that.  If by EST you mean US eastern time try

-Duser.timezone=America/New_York
0
 

Author Closing Comment

by:theideabulb
ID: 35035730
That did it.. Thanks!
0

Featured Post

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month8 days, 1 hour left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question