Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.
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.