To get the SERVER TIMESTAMP for firestore, it is
<code>from firebase_admin import firestore
...
{"createdAt": firestore.firestore.SERVER_TIMESTAMP}
</code>
<code>from firebase_admin import firestore
...
{"createdAt": firestore.firestore.SERVER_TIMESTAMP}
</code>
from firebase_admin import firestore
...
{"createdAt": firestore.firestore.SERVER_TIMESTAMP}
but how to get the SERVER TIMESTAMP for Realtime Database?
<code>from firebase_admin import db
@https_fn.on_call()
def f1(req: https_fn.CallableRequest):
...
db.reference(f"users/{userId}").set({"createdAt": # SERVER TIMESTAMP refrence ?? })
</code>
<code>from firebase_admin import db
@https_fn.on_call()
def f1(req: https_fn.CallableRequest):
...
db.reference(f"users/{userId}").set({"createdAt": # SERVER TIMESTAMP refrence ?? })
</code>
from firebase_admin import db
@https_fn.on_call()
def f1(req: https_fn.CallableRequest):
...
db.reference(f"users/{userId}").set({"createdAt": # SERVER TIMESTAMP refrence ?? })