-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
7u79
-
generic
-
generic
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
Timestamp.valueOf change the date created, time actually changes the date. This is not true for all dates, just for some in particular. This happens Timezone "America / Buenos_Aires".
Example:
Timestamp result = Timestamp.valueOf("1991-10-20 00:00:00");
this change date to "1991-10-20 01:00:00" (change hours)
This error does not occur with such TimeZone "America / Los_Angeles".
Sorry for my English.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.sql.Timestamp;
import java.util.*;
public class HelloWorld{
public static void main(String []args){
TimeZone.setDefault(TimeZone.getTimeZone("America/Buenos_Aires"));
String date = "1991-10-20 00:00:00";
System.out.println("date: " + date);
Timestamp date_timestamp = Timestamp.valueOf(date);
System.out.println("date_timestamp: " + date_timestamp);
}
}
---------- END SOURCE ----------
A DESCRIPTION OF THE PROBLEM :
Timestamp.valueOf change the date created, time actually changes the date. This is not true for all dates, just for some in particular. This happens Timezone "America / Buenos_Aires".
Example:
Timestamp result = Timestamp.valueOf("1991-10-20 00:00:00");
this change date to "1991-10-20 01:00:00" (change hours)
This error does not occur with such TimeZone "America / Los_Angeles".
Sorry for my English.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.sql.Timestamp;
import java.util.*;
public class HelloWorld{
public static void main(String []args){
TimeZone.setDefault(TimeZone.getTimeZone("America/Buenos_Aires"));
String date = "1991-10-20 00:00:00";
System.out.println("date: " + date);
Timestamp date_timestamp = Timestamp.valueOf(date);
System.out.println("date_timestamp: " + date_timestamp);
}
}
---------- END SOURCE ----------