This lesson is for members. Join us?
Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.
Using the Server Timestamp for Post Published At
The Composition API Masterclass is coming soon!
Sign-up for the Vue.js Masterclass 2024 Edition.
In this lesson, we use the Firstore server timestamp to set the publishedAt property on newly created posts. While Date.now() is readily available in Javascript the serverTimestamp ensures better consistency and accuracy for the timestamps.
