We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d1a2c2 commit d50ea25Copy full SHA for d50ea25
1 file changed
google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java
@@ -104,9 +104,9 @@ class FirestoreImpl implements Firestore {
104
+ "instead expect a Timestamp. For example:\n"
105
+ "\n"
106
+ "// Old:\n"
107
- + "java.util.Date date = snapshot.getDate(\"created_at\");\n"
+ + "java.util.Date date = (java.util.Date) snapshot.get(\"created_at\");\n"
108
+ "// New:\n"
109
- + "Timestamp timestamp = snapshot.getTimestamp(\"created_at\");\n"
+ + "Timestamp timestamp = (Timestamp) snapshot.get(\"created_at\");\n"
110
+ "java.util.Date date = timestamp.toDate();\n"
111
112
+ "Please audit all existing usages of java.util.Date when you enable the new "
0 commit comments