Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Timezones and versions of Java
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 28 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
loial  
View profile  
 More options May 23 2011, 10:38 am
Newsgroups: comp.lang.java.programmer
From: loial <jldunn2...@gmail.com>
Date: Mon, 23 May 2011 07:38:54 -0700 (PDT)
Local: Mon, May 23 2011 10:38 am
Subject: Timezones and versions of Java
I am trying to convert BST times to EST.

The following code correctly returns a difference of 5 hours between
the 2 times when run under Java 1.5. :

Local Offset 3600000
EST Offset -14400000
EST time Tue May 04 07:48:18 2010
BST time Tue May 04 12:48:18 2010

However if run under Java 1.6 (on the same machine), it returns a time
difference of 6 hours :

Local Offset 3600000
EST Offset -18000000
EST time Tue May 04 06:48:18 2010
BST time Tue May 04 12:48:18 2010

Do I need to do something different in Java 1.6?.

Platform is linux.

class testtz {
    public static void main(String[] args) {

       Date date = null;

       SimpleDateFormat dateFormat = new
SimpleDateFormat("yyyyMMddHHmmss");

       try {

            date = dateFormat.parse("20100504124818");
       }
       catch(ParseException pe) {
           System.out.println("Error");
       }

       TimeZone tz1 = TimeZone.getDefault();

       long localOffset = tz1.getOffset(date.getTime());

       System.out.println("Local Offset " + localOffset);

       TimeZone tz2 = TimeZone.getTimeZone("EST");

       long remoteOffset = tz2.getOffset(date.getTime());

       System.out.println("EST Offset " + remoteOffset);

       Date dateToPutInDB = new Date(date.getTime() - localOffset +
remoteOffse;

       System.out.println("EST time " + dateToPutInDB)

       System.out.println("BST time " + date);

   }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nigel Wade  
View profile  
 More options May 23 2011, 10:45 am
Newsgroups: comp.lang.java.programmer
From: Nigel Wade <nmw-n...@ion.le.ac.uk>
Date: Mon, 23 May 2011 15:45:19 +0100
Local: Mon, May 23 2011 10:45 am
Subject: Re: Timezones and versions of Java
On 23/05/11 15:38, loial wrote:

> I am trying to convert BST times to EST.

> The following code correctly returns a difference of 5 hours between
> the 2 times when run under Java 1.5. :

Not it doesn't, it doesn't even compile. Post the actual code you are
running.

--
Nigel Wade


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
loial  
View profile  
 More options May 23 2011, 11:12 am
Newsgroups: comp.lang.java.programmer
From: loial <jldunn2...@gmail.com>
Date: Mon, 23 May 2011 08:12:35 -0700 (PDT)
Local: Mon, May 23 2011 11:12 am
Subject: Re: Timezones and versions of Java
import java.util.*;
import java.text.*;
class testtz {
    public static void main(String[] args) {

       Date date = null;

       SimpleDateFormat dateFormat = new
SimpleDateFormat("yyyyMMddHHmmss");

       try {

            date = dateFormat.parse("20100504124818");
       }
       catch(ParseException pe) {
           System.out.println("Error");
       }

       TimeZone tz1 = TimeZone.getDefault();

       long localOffset = tz1.getOffset(date.getTime());

       System.out.println("Local Offset " + localOffset);

       TimeZone tz2 = TimeZone.getTimeZone("EST");

       long remoteOffset = tz2.getOffset(date.getTime());

       System.out.println("EST Offset " + remoteOffset);

       Date dateToPutInDB = new Date(date.getTime() - localOffset +
remoteOffset);

       System.out.println("EST time " + dateToPutInDB);

       System.out.println("BST time " + date);

   }

}

On May 23, 3:45 pm, Nigel Wade <nmw-n...@ion.le.ac.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nigel Wade  
View profile  
 More options May 23 2011, 11:26 am
Newsgroups: comp.lang.java.programmer
From: Nigel Wade <nmw-n...@ion.le.ac.uk>
Date: Mon, 23 May 2011 16:26:15 +0100
Local: Mon, May 23 2011 11:26 am
Subject: Re: Timezones and versions of Java
On 23/05/11 15:38, loial wrote:

> I am trying to convert BST times to EST.

> The following code correctly returns a difference of 5 hours between
> the 2 times when run under Java 1.5. :

> Local Offset 3600000
> EST Offset -14400000
> EST time Tue May 04 07:48:18 2010
> BST time Tue May 04 12:48:18 2010

That time difference is wrong.

> However if run under Java 1.6 (on the same machine), it returns a time
> difference of 6 hours :

BST is 1 hour ahead of GMT, EST is 5 hours behind GMT. That's a total of
6 hours. (Note: EST does not implement DST, that is EDT).

> Local Offset 3600000
> EST Offset -18000000
> EST time Tue May 04 06:48:18 2010
> BST time Tue May 04 12:48:18 2010

--
Nigel Wade

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lew  
View profile  
 More options May 23 2011, 11:58 am
Newsgroups: comp.lang.java.programmer
From: Lew <no...@lewscanon.com>
Date: Mon, 23 May 2011 11:58:11 -0400
Local: Mon, May 23 2011 11:58 am
Subject: Re: Timezones and versions of Java

loial wrote:
> I am trying to convert BST times to EST.

What time zones do you mean here?  Bangladesh Standard Time?  British Summer
Time?  Eastern Standard Time in the Caribbean?

Neither "EST" nor "BST" is a standard time-zone name.

Have you considered reading the documentation?

> The following code correctly returns a difference of 5 hours between
> the 2 times when run under Java 1.5. :

> Local Offset 3600000
> EST Offset -14400000
> EST time Tue May 04 07:48:18 2010

You do realize that Eastern Time is not "EST" on May 4 anywhere other than
Australia, right?  Any other jurisdiction that uses "EST" as an abbreviation
is on Summer Time on that date.  Therefore you must be referring to Australian
time, but that's the wrong offset for that zone.

Please clarify.

In any case, there's nothing correct in what you show here.  Why do you say
this is a correct return?

> BST time Tue May 04 12:48:18 2010

Does Bangladesh have Daylight Saving Time?

> However if run under Java 1.6 (on the same machine), it returns a time
> difference of 6 hours :

> Local Offset 3600000
> EST Offset -18000000
> EST time Tue May 04 06:48:18 2010
> BST time Tue May 04 12:48:18 2010

> Do I need to do something different in Java 1.6?.

Maybe give it the right time zone?

You do realize that Eastern Standard Time in the U.S. is -18000000
milliseconds offset from UTC, right?  So if "EST" is "America/New_York" (and,
of course, not Daylight Saving Time), then this display is correct.

What makes you think that it is not correct?

> Platform is linux [sic].

> class testtz {

Class names should start with an upper-case letter.

>      public static void main(String[] args) {

>         Date date = null;

Why do you set the date to 'null'?  It's unnecessary and potentially harmful;
it certainly is harmful in the code you show here.

>         SimpleDateFormat dateFormat = new
> SimpleDateFormat("yyyyMMddHHmmss");

>         try {

>              date = dateFormat.parse("20100504124818");

Here you throw away that 'null' value that you shouldn't have initialized.

>         }
>         catch(ParseException pe) {
>             System.out.println("Error");
>         }

>         TimeZone tz1 = TimeZone.getDefault();

If you're in the Northern Hemisphere in most jurisdictions, you will not get
"EST" from this on May 4.

<http://download.oracle.com/javase/6/docs/api/java/util/TimeZone.html>
"Three-letter time zone IDs

"For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such
as "PST", "CTT", "AST") are also supported. However, their use is deprecated
because the same abbreviation is often used for multiple time zones (for
example, "CST" could be U.S. "Central Standard Time" and "China Standard
Time"), and the Java platform can then only recognize one of them."

Have you considered reading the documentation?

RTFM.
RTFM.
RTFM.

--
Lew
RTFM.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options May 23 2011, 7:50 pm
Newsgroups: comp.lang.java.programmer
Followup-To: comp.lang.java.programmer
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Tue, 24 May 2011 11:50:58 +1200
Local: Mon, May 23 2011 7:50 pm
Subject: Re: Timezones and versions of Java
In message
<fde67e7a-6198-4e7f-a07b-4655c1108...@j13g2000pro.googlegroups.com>, loial
wrote:

> Platform is linux.

Linux has a perfectly serviceable set of timezone files available SYSTEMWIDE
in /usr/share/zoneinfo; why do subsystems like Java insist on carrying
around their own, potentially out-of-date and inconsistent copies?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Futtorovic  
View profile  
 More options May 23 2011, 8:16 pm
Newsgroups: comp.lang.java.programmer
From: Daniele Futtorovic <da.futt.n...@laposte-dot-net.invalid>
Date: Tue, 24 May 2011 02:16:14 +0200
Local: Mon, May 23 2011 8:16 pm
Subject: Re: Timezones and versions of Java
On 24/05/2011 01:50, Lawrence D'Oliveiro allegedly wrote:

> In message
> <fde67e7a-6198-4e7f-a07b-4655c1108...@j13g2000pro.googlegroups.com>, loial
> wrote:

>> Platform is linux.

> Linux has a perfectly serviceable set of timezone files available SYSTEMWIDE
> in /usr/share/zoneinfo; why do subsystems like Java insist on carrying
> around their own, potentially out-of-date and inconsistent copies?

The JRE carries regularly updated timezone info (which can be updated
independently of the JRE) for the purpose of running in environments
that do not sport a perfectly serviceable set of timezone informations.

--
DF.
An escaped convict once said to me:
"Alcatraz is the place to be"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options May 23 2011, 10:40 pm
Newsgroups: comp.lang.java.programmer
Followup-To: comp.lang.java.programmer
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Tue, 24 May 2011 14:40:46 +1200
Local: Mon, May 23 2011 10:40 pm
Subject: Re: Timezones and versions of Java
In message <iretd3$lg...@dont-email.me>, Daniele Futtorovic wrote:

> On 24/05/2011 01:50, Lawrence D'Oliveiro allegedly wrote:

>> Linux has a perfectly serviceable set of timezone files available
>> SYSTEMWIDE in /usr/share/zoneinfo; why do subsystems like Java insist on
>> carrying around their own, potentially out-of-date and inconsistent
>> copies?

> The JRE carries regularly updated timezone info (which can be updated
> independently of the JRE) for the purpose of running in environments
> that do not sport a perfectly serviceable set of timezone informations.

Which is not the case with Linux. Why can it not use zoneinfo when it’s
available?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lothar Kimmeringer  
View profile  
 More options May 24 2011, 3:12 am
Newsgroups: comp.lang.java.programmer
From: Lothar Kimmeringer <news200...@kimmeringer.de>
Date: Tue, 24 May 2011 09:12:07 +0200
Local: Tues, May 24 2011 3:12 am
Subject: Re: Timezones and versions of Java

Lawrence D'Oliveiro wrote:
> In message <iretd3$lg...@dont-email.me>, Daniele Futtorovic wrote:

>> The JRE carries regularly updated timezone info (which can be updated
>> independently of the JRE) for the purpose of running in environments
>> that do not sport a perfectly serviceable set of timezone informations.

> Which is not the case with Linux. Why can it not use zoneinfo when it¢s
> available?

Because these files are part of the runtime-classes which are
Java and are therefor platform independent. BTW: How is Linux
ensuring that the timezone-files are staying correct? I assume
by doing the same thing that you do with Java: Update to the
most current version. Since you do this update for other reasons
as well (bugfixes, more performance, etc.) I don't see a big
disadvantage handling timezone-calculations in Java itself.

Regards, Lothar
--
Lothar Kimmeringer                E-Mail: spamf...@kimmeringer.de
               PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
                 questions!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options May 24 2011, 4:25 am
Newsgroups: comp.lang.java.programmer
Followup-To: comp.lang.java.programmer
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Tue, 24 May 2011 20:25:01 +1200
Local: Tues, May 24 2011 4:25 am
Subject: Re: Timezones and versions of Java
In message <l0t0ynlpptf2$....@kimmeringer.de>, Lothar Kimmeringer wrote:

> Lawrence D'Oliveiro wrote:

>> In message <iretd3$lg...@dont-email.me>, Daniele Futtorovic wrote:

>>> The JRE carries regularly updated timezone info (which can be updated
>>> independently of the JRE) for the purpose of running in environments
>>> that do not sport a perfectly serviceable set of timezone informations.

>> Which is not the case with Linux. Why can it not use zoneinfo when it’s
>> available?

> Because these files are part of the runtime-classes which are
> Java and are therefor platform independent.

Is that like saying you can never take the plane from an airport in your
town, because other towns don’t have airports?

> BTW: How is Linux ensuring that the timezone-files are staying correct?

Much more easily and quickly than any software vendor can provide software
patches.

For example, Chile recently rushed through a bill to extend its daylight-
saving hours, just days before the period was due to end under the old
rules. A zoneinfo patch was available that same week
<http://article.gmane.org/gmane.comp.time.tz/3702>, and has already been
rolled into the regular release <ftp://elsie.nci.nih.gov/pub/>.

Has Java been patched for this yet?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lew  
View profile  
 More options May 24 2011, 8:14 am
Newsgroups: comp.lang.java.programmer
From: Lew <no...@lewscanon.com>
Date: Tue, 24 May 2011 08:14:25 -0400
Local: Tues, May 24 2011 8:14 am
Subject: Re: Timezones and versions of Java
On 05/24/2011 04:25 AM, Lawrence D'Oliveiro wrote:

Yes, as you would know if you did even the most minimal checking.

--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Gregorie  
View profile  
 More options May 24 2011, 8:32 am
Newsgroups: comp.lang.java.programmer
From: Martin Gregorie <mar...@address-in-sig.invalid>
Date: Tue, 24 May 2011 12:32:22 +0000 (UTC)
Local: Tues, May 24 2011 8:32 am
Subject: Re: Timezones and versions of Java

On Tue, 24 May 2011 20:25:01 +1200, Lawrence D'Oliveiro wrote:

> Is that like saying you can never take the plane from an airport in your
> town, because other towns don’t have airports?

No.

--
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lothar Kimmeringer  
View profile  
 More options May 24 2011, 11:26 am
Newsgroups: comp.lang.java.programmer
From: Lothar Kimmeringer <news200...@kimmeringer.de>
Date: Tue, 24 May 2011 17:26:15 +0200
Local: Tues, May 24 2011 11:26 am
Subject: Re: Timezones and versions of Java

Lawrence D'Oliveiro wrote:
> In message <l0t0ynlpptf2$....@kimmeringer.de>, Lothar Kimmeringer wrote:

>> Because these files are part of the runtime-classes which are
>> Java and are therefor platform independent.

> Is that like saying you can never take the plane from an airport in your
> town, because other towns don¢t have airports?

No, it's more like saying, that I prefer wearing my own watch even
if I reside in an area where you can see public clocks very often.

Regards, Lothar
--
Lothar Kimmeringer                E-Mail: spamf...@kimmeringer.de
               PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
                 questions!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options May 24 2011, 8:04 pm
Newsgroups: comp.lang.java.programmer
Followup-To: comp.lang.java.programmer
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Wed, 25 May 2011 12:04:30 +1200
Local: Tues, May 24 2011 8:04 pm
Subject: Re: Timezones and versions of Java
In message <irg8gm$ib...@localhost.localdomain>, Martin Gregorie wrote:

> [rubbish]

Interesting how not a single one of you has addressed the relevant point.
Let me repeat it:

For example, Chile recently rushed through a bill to extend its daylight-
saving hours, just days before the period was due to end under the old
rules. A zoneinfo patch was available that same week
<http://article.gmane.org/gmane.comp.time.tz/3702>, and has already been
rolled into the regular release <ftp://elsie.nci.nih.gov/pub/>.

Has Java been patched for this yet?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options May 24 2011, 8:07 pm
Newsgroups: comp.lang.java.programmer
Followup-To: comp.lang.java.programmer
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Wed, 25 May 2011 12:07:43 +1200
Local: Tues, May 24 2011 8:07 pm
Subject: Re: Timezones and versions of Java
In message <10v5xwjy2wwvr$....@kimmeringer.de>, Lothar Kimmeringer wrote:

> Lawrence D'Oliveiro wrote:

>> In message <l0t0ynlpptf2$....@kimmeringer.de>, Lothar Kimmeringer wrote:

>>> Because these files are part of the runtime-classes which are
>>> Java and are therefor platform independent.

>> Is that like saying you can never take the plane from an airport in your
>> town, because other towns don’t have airports?

> No, it's more like saying, that I prefer wearing my own watch even
> if I reside in an area where you can see public clocks very often.

No, it’s more like saying you aren’t allowed to use the public clock, you
must go by my watch.

Java isn’t giving you the choice of whether to be stupid or clever, it’s
forcing you to always be stupid.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lew  
View profile  
 More options May 24 2011, 9:57 pm
Newsgroups: comp.lang.java.programmer
From: Lew <no...@lewscanon.com>
Date: Tue, 24 May 2011 21:57:33 -0400
Local: Tues, May 24 2011 9:57 pm
Subject: Re: Timezones and versions of Java
On 05/24/2011 08:04 PM, Lawrence D'Oliveiro wrote:

> In message<irg8gm$ib...@localhost.localdomain>, Martin Gregorie wrote:

>> [rubbish]

> Interesting how not a single one of you has addressed the relevant point.
> Let me repeat it:

> For example, Chile recently rushed through a bill to extend its daylight-
> saving hours, just days before the period was due to end under the old
> rules. A zoneinfo patch was available that same week
> <http://article.gmane.org/gmane.comp.time.tz/3702>, and has already been
> rolled into the regular release<ftp://elsie.nci.nih.gov/pub/>.

> Has Java been patched for this yet?

Again, asked and answered.  Yes.

--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roedy Green  
View profile  
 More options May 24 2011, 10:34 pm
Newsgroups: comp.lang.java.programmer
From: Roedy Green <see_webs...@mindprod.com.invalid>
Date: Tue, 24 May 2011 19:34:56 -0700
Local: Tues, May 24 2011 10:34 pm
Subject: Re: Timezones and versions of Java
On Mon, 23 May 2011 07:38:54 -0700 (PDT), loial <jldunn2...@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>Do I need to do something different in Java 1.6?.

read the release notes for the two versions and those in between to
see the corrections made to timezone data.  Timezones are as goofy as
the spellings of female babies.  It is big job to keep track of all
the eccentricities.

The later version will be the more correct.
--
Roedy Green Canadian Mind Products
http://mindprod.com
How long did it take after the car was invented before owners understood
cars would not work unless you regularly changed the oil and the tires?
We have gone 33 years and still it is rare to uncover a user who
understands computers don't work without regular backups.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stanimir Stamenkov  
View profile  
 More options May 25 2011, 2:39 am
Newsgroups: comp.lang.java.programmer
From: Stanimir Stamenkov <s7a...@netscape.net>
Date: Wed, 25 May 2011 09:39:52 +0300
Local: Wed, May 25 2011 2:39 am
Subject: Re: Timezones and versions of Java
Wed, 25 May 2011 12:04:30 +1200, /Lawrence D'Oliveiro/:

> For example, Chile recently rushed through a bill to extend its daylight-
> saving hours, just days before the period was due to end under the old
> rules. A zoneinfo patch was available that same week
> <http://article.gmane.org/gmane.comp.time.tz/3702>, and has already been
> rolled into the regular release <ftp://elsie.nci.nih.gov/pub/>.

> Has Java been patched for this yet?

Java has a TZupdater (Timezone Updater) tool which takes care:

http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138...

http://www.oracle.com/technetwork/java/javase/tzupdater-readme-136440...

http://www.oracle.com/technetwork/java/javase/timezones-137583.html

and yes the exact update you're mentioning seems to be there:

http://www.oracle.com/technetwork/java/javase/tzdata-versions-138805....

That's what Lew has referred to with "you would know if you did even
the most minimal checking".

--
Stanimir


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options May 25 2011, 3:49 am
Newsgroups: comp.lang.java.programmer
Followup-To: comp.lang.java.programmer
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Wed, 25 May 2011 19:49:18 +1200
Local: Wed, May 25 2011 3:49 am
Subject: Re: Timezones and versions of Java
In message <iri87l$no...@dont-email.me>, Stanimir Stamenkov wrote:

> Wed, 25 May 2011 12:04:30 +1200, /Lawrence D'Oliveiro/:

>> For example, Chile recently rushed through a bill to extend its daylight-
>> saving hours, just days before the period was due to end under the old
>> rules. A zoneinfo patch was available that same week
>> <http://article.gmane.org/gmane.comp.time.tz/3702>, and has already been
>> rolled into the regular release <ftp://elsie.nci.nih.gov/pub/>.

>> Has Java been patched for this yet?

> Java has a TZupdater (Timezone Updater) tool which takes care:

So the answer is “no”: you need to download, install and run a separate tool
to apply a patch to fix it up.

How many people are going to bother with this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options May 25 2011, 3:50 am
Newsgroups: comp.lang.java.programmer
Followup-To: comp.lang.java.programmer
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Wed, 25 May 2011 19:50:23 +1200
Local: Wed, May 25 2011 3:50 am
Subject: Re: Timezones and versions of Java
In message <iri87l$no...@dont-email.me>, Stanimir Stamenkov wrote:

> Java has a TZupdater (Timezone Updater) tool which takes care:

Actually the link (bypassing the licence-agreement page) is here
<http://download.oracle.com/otn-pub/java/tzupdater/1.3.38/tzupdater-1_...>.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nigel Wade  
View profile  
 More options May 25 2011, 4:35 am
Newsgroups: comp.lang.java.programmer
From: Nigel Wade <nmw-n...@ion.le.ac.uk>
Date: Wed, 25 May 2011 09:35:36 +0100
Local: Wed, May 25 2011 4:35 am
Subject: Re: Timezones and versions of Java
On 25/05/11 08:49, Lawrence D'Oliveiro wrote yet more complete and utter
rubbish:

> In message <iri87l$no...@dont-email.me>, Stanimir Stamenkov wrote:

>>> Has Java been patched for this yet?

>> Java has a TZupdater (Timezone Updater) tool which takes care:

[moronic utterings deleted]

Why do you bother continuing to feed this troll?

--
Nigel Wade


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bugbear  
View profile  
 More options May 25 2011, 4:55 am
Newsgroups: comp.lang.java.programmer
From: bugbear <bugbear@trim_papermule.co.uk_trim>
Date: Wed, 25 May 2011 09:55:52 +0100
Local: Wed, May 25 2011 4:55 am
Subject: Re: Timezones and versions of Java

Lew wrote:
> On 05/24/2011 04:25 AM, Lawrence D'Oliveiro wrote:
>> In message<l0t0ynlpptf2$....@kimmeringer.de>, Lothar Kimmeringer wrote:

>>> Lawrence D'Oliveiro wrote:

>> Has Java been patched for this yet?

> Yes, as you would know if you did even the most minimal checking.

For a supposedly experienced programmer, Lawrence
finds a lot of simple tasks surprisingly difficult.

  BugBear


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stanimir Stamenkov  
View profile  
 More options May 25 2011, 7:55 am
Newsgroups: comp.lang.java.programmer
From: Stanimir Stamenkov <s7a...@netscape.net>
Date: Wed, 25 May 2011 14:55:21 +0300
Local: Wed, May 25 2011 7:55 am
Subject: Re: Timezones and versions of Java
Wed, 25 May 2011 19:49:18 +1200, /Lawrence D'Oliveiro/:

> In message <iri87l$no...@dont-email.me>, Stanimir Stamenkov wrote:

>> Java has a TZupdater (Timezone Updater) tool which takes care:

> So the answer is “no”: you need to download, install and run a separate tool
> to apply a patch to fix it up.

> How many people are going to bother with this?

People who care or need it, people maintaining servers.  Those who
don't need it will get the latest data with the next JRE update.

--
Stanimir


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Sobol  
View profile  
 More options May 25 2011, 12:35 pm
Newsgroups: comp.lang.java.programmer
From: Steve Sobol <sjso...@JustThe.net>
Date: Wed, 25 May 2011 09:35:48 -0700
Local: Wed, May 25 2011 12:35 pm
Subject: Re: Timezones and versions of Java
In article <iric9v$l9...@lust.ihug.co.nz>, Lawrence D'Oliveiro says...

> So the answer is ?no?: you need to download, install and run a separate tool
> to apply a patch to fix it up.

Funny. At times I've had to do EXACTLYY THE SAME THING to update TZ data
in the operating system.

Windows and Linux, both.

> How many people are going to bother with this?

People who want their clock to be correct.

--
Steve Sobol - Programming/WebDev/IT Support
sjso...@JustThe.net


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lawrence D'Oliveiro  
View profile  
 More options May 25 2011, 7:34 pm
Newsgroups: comp.lang.java.programmer
Followup-To: comp.lang.java.programmer
From: Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand>
Date: Thu, 26 May 2011 11:34:18 +1200
Local: Wed, May 25 2011 7:34 pm
Subject: Re: Timezones and versions of Java
In message <MPG.2846cfc422e5e705989...@news.justthe.net>, Steve Sobol wrote:

> In article <iric9v$l9...@lust.ihug.co.nz>, Lawrence D'Oliveiro says...

>> So the answer is “no”: you need to download, install and run a separate
>> tool to apply a patch to fix it up.

> Funny. At times I've had to do EXACTLYY THE SAME THING to update TZ data
> in the operating system.

Compare the difference: this
<http://article.gmane.org/gmane.comp.time.tz/3702> versus this
<http://download.oracle.com/otn-pub/java/tzupdater/1.3.38/tzupdater-1_...>

The first one is a diff. What does it do? Why, just look at the diff itself,
and you can see what it does. No hidden surprises there; it’s not even code,
it’s just data, i.e. timezone rules. How to apply it? Just use patch(1), a
standard utility available on all self-respecting open-source-based systems.

What’s the second one? It’s a .jar file with a readme. What does it do?
Don’t know for sure, actually. The readme says one thing, but without source
code to refer to, how can you be sure?

How do you roll out that Oracle patch? You have to double-click it or
something on every single system where you want to install it. Do you have
to reboot or something afterwards? To be safe, probably yes.

How do you roll out the tzdata patch? That’s easy: you can run a bulk SSH
loop across all your systems.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 28   Newer >
« Back to Discussions « Newer topic     Older topic »