title: Firebase Firestore Swift, Timestamp but server time?
body: <p>With Firestore, I add a timestamp field like this</p>
  <pre><code>    var ref: DocumentReference? = nil
      ref = Firestore.firestore()
          .collection(&quot;something&quot;)
          .addDocument(data: [
              &quot;name&quot;: name,
              &quot;words&quot;: words,
              &quot;created&quot;: Timestamp(date: Date())
          ]) { ...
              let theNewId = ref!.documentID
              ...
      }
  </code></pre>
  <p>That's fine and works great, but it's not really correct.  Should be using the &quot;server timestamp&quot; which Firestore supplies.</p>
  <p>Please note this is on iOS (Swift) and Firestore, not Firebase.</p>
  <p>What is the syntax to get a server timestamp?</p>