Author Topic: New Daylight Savings Time changes for the US  (Read 8319 times)

dskinner

  • Newbie
  • *
  • Posts: 9
  • Karma: 2
    • View Profile
    • Email
New Daylight Savings Time changes for the US
« on: March 14, 2007, 17:14:19 »
The rest of my Asterisk/QM machine is seeing the DST change, but QM is still an hour behind.  Is this a change that needs to happen in QM or perhaps it is Tomcat that needs to be updated?

Thanks!

dskinner

  • Newbie
  • *
  • Posts: 9
  • Karma: 2
    • View Profile
    • Email
Re: New Daylight Savings Time changes for the US
« Reply #1 on: March 14, 2007, 17:53:56 »
And it never fails.  Ask the question and find the answer 2 mins later:

http://www.centos.org/modules/newbb/viewtopic.php?topic_id=7279&forum=27&post_id=22589#forumpost22589

I stopped tomcat, ran the updater, started tomcat and QM is showing the correct time now.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: New Daylight Savings Time changes for the US
« Reply #2 on: March 14, 2007, 19:12:18 »
That's simply great - I believe this problem will involve a lot of our customers and prospects, so we are adding that to the FAQ.
Thanks you!

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: New Daylight Savings Time changes for the US
« Reply #3 on: March 15, 2007, 09:57:57 »
This technical article explains it all:
http://java.sun.com/developer/technicalArticles/Intl/USDST/

It is a big nuisance that there are so many different TZ data files bundled with different versions of Java itself, so unless you want to upgrade to the latest JDK, you don't tknow if it will work for you until it breaks.


TimK

  • Newbie
  • *
  • Posts: 6
  • Karma: 5
    • View Profile
Re: New Daylight Savings Time changes for the US
« Reply #4 on: March 15, 2007, 12:10:36 »
I believe if you have versions:
1.3.1_18
1.4.2_11
5.0_u6 (1.5.0_06)
6
... and higher you will be ok and no update is necessary.
The tzUpdater tool can also just be used to only check and validate the current time zone information. Just use the --verbose and --test options when you run from the command line like this:
Code: [Select]
java -jar tzupdater.jar --verbose --test
The readme for the tzUpdater tool can be found here: http://java.sun.com/javase/tzupdater_README.html

As a side note: make sure that you're not only changing the time on your linux machines by one hour. The entire time zone needs to be changed. For example, if you're living on the east coast USA, the time zone changed from -0500 to -0400. You can check this by running from a console prompt
Code: [Select]
date -R This will display the time and date including the GMT/UTC offset. ;D

cuban_cigar

  • Newbie
  • *
  • Posts: 37
  • Karma: 0
    • View Profile
Re: New Daylight Savings Time changes for the US
« Reply #5 on: March 15, 2010, 19:27:01 »
Read through both those links, the question remains:


How to get queuemetrics time correct due to daylight savings inconsistency bug?


Java updater broken !

[root@server1 tzupdater-1.3.25-2009u]# /usr/bin/java -jar tzupdater.jar --verbose --test
The Java runtime doesn''t have time zone data (zi directory).


Help !
« Last Edit: March 15, 2010, 20:20:23 by cuban_cigar »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: New Daylight Savings Time changes for the US
« Reply #6 on: March 16, 2010, 09:47:26 »
Download and install a new version of Java SDK (from SUN, it's better - do not use GCJ).

You can install it anywhere on your system - like imagine you install it as /opt/java/jdk1.6.0b7

As QueueMetrics accesses its own Java SDK under a symbolic link placed  at /usr/local/queuemetrics/java, it is trivial to change that to use a different SDK.

Code: [Select]
cd /usr/local/queuemetrics
rm -f java
ln -s /opt/java/jdk1.6.0b7 java

This is all you have to do!