0

I am trying to retrieve firebase server timestamp (firebase.database.ServerValue.TIMESTAMP) in a polymer project using polymerfire. Is that possible and how ? Thanks

Joce M
  • 21
  • 2

1 Answers1

0

You can use this place holder value: {".sv":"timestamp"} For example when you push your data:

this.$.post.ref.push({
  title:"Hello",
  body:"Hello world",
  time:{".sv":"timestamp"}
 })