T
Tivo Escobar
Hi all,
I am having some problems with dates in Java (again).
When an object of type java.util.Date is initialized with a long, this
long means the number of miliseconds since 00:00:00 01/01/1970 GMT.
The problem is that when I initialize a Date object with zero (new
Date(0)), the result is 22:00:00 31/12/1969 BRST. Since I am in Brazil
time zone (GMT-3) and there was no daylight saving time in Brazil in
the years 1969/1970 I was expecting to obtain 21:00:00 31/12/1969 BRT.
It seems a silly issue, but I am having serious problems to integrate
my Java application with a service written in C++.
In other words, Java thinks there was daylight saving time in the
years 1969/1970 in Brazil, while there was not. Do you know from where
Java gets this information? How can I configure it to the correct
parameters? Any suggestions?
Thanks in adavnce,
Tivo
I am having some problems with dates in Java (again).
When an object of type java.util.Date is initialized with a long, this
long means the number of miliseconds since 00:00:00 01/01/1970 GMT.
The problem is that when I initialize a Date object with zero (new
Date(0)), the result is 22:00:00 31/12/1969 BRST. Since I am in Brazil
time zone (GMT-3) and there was no daylight saving time in Brazil in
the years 1969/1970 I was expecting to obtain 21:00:00 31/12/1969 BRT.
It seems a silly issue, but I am having serious problems to integrate
my Java application with a service written in C++.
In other words, Java thinks there was daylight saving time in the
years 1969/1970 in Brazil, while there was not. Do you know from where
Java gets this information? How can I configure it to the correct
parameters? Any suggestions?
Thanks in adavnce,
Tivo