I know you can pull the server timestamp in web, ios, and android - but what about the new Cloud Functions for Firebase? I can\'t figure out how to get the server timestamp
If you use the Firebase Admin SDK, here is the correct syntax (Checked 2019-08-27):
const admin = require('firebase-admin');
// or
// import * as admin from 'firebase-admin';
// Using Cloud Firestore
admin.firestore.FieldValue.serverTimestamp()
// Using Realtime Database
admin.database.ServerValue.TIMESTAMP