I have a chat app where conversations are deleted within 7 days if they don't meet certain requirements. So when the conversation is created I save the current time which goes as the creation time and later on I compare it to the current time the moment of the comparison to find out how much time it has been. I do that using Date.now()
but I noticed that other developers use Firebase current timestamp. Question is why ?
Update: I understand now that Date.now() can't be trusted with the app side of things as it is manipulable by the user. So what about the cloud functions ... Date.now() is good enough in there ?