ServerTimestamp is always null on Firebase Firestore

前端 未结 4 2067
攒了一身酷
攒了一身酷 2020-11-22 07:58

I am trying to add a timestamp field in an Android client with Firebase Firestore.

According to the documentation:

Annotation used to mark a D

4条回答
  •  忘掉有多难
    2020-11-22 09:00

    I had a similar problem,

    I was getting the exception ...has type java.sql.Timestamp, got java.util.Date ..., so I just replace the type from Timestamp to Date ( from java.util.Date) and worked fine.

提交回复
热议问题