We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32efd26 commit 2781957Copy full SHA for 2781957
1 file changed
google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/Date.java
@@ -84,7 +84,7 @@ public static LocalDate toDate(Date date){
84
* @return Date
85
*/
86
public static Date toDate(LocalDate date){
87
- return new Date(date.getDayOfYear(), date.getMonthValue(), date.getDayOfMonth());
+ return new Date(date.getYear(), date.getMonthValue(), date.getDayOfMonth());
88
}
89
90
/**
@@ -100,7 +100,7 @@ public static LocalDate fromDate(Date date){
100
101
102
public static Date fromDate(LocalDate date){
103
104
105
106
/** Returns the year. */
0 commit comments