Solved

Timezone setting wrong on CF9 Server

Posted on 2011-03-03
6
873 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 500 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
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 
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 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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