我最近发现了firestore.Timestamp,所以我尝试将firestore.FieldValue.serverTimestamp();分配给一个,但它没有工作。相反,它说的Type 'FieldValue' is not assignable to type 'Timestamp',我会说这是奇怪的。如果不将时间戳保存到Firestore中,firestore.Time
db = FirestoreClient.getFirestore();
存储在Firestore中的java.util.Date对象的行为将发生变化中的时间戳将作为com.google.cloud.Timestamp对象而不是系统java.util.Date对象读取。因此,您还需要更新代码,希望使用java.ut