hello guys
i want to know how can i get an server time? i use “Firebase::ServerTimestamp()” i get this answer
i want to setup playing duration for each user and i don’t want use local storage for prevent cheating
i need guide how to get time from firebase or any server correctly , and then how to do some mathematics on time to calculate total spend time?
Please do not mention random people to get attention, that is bad etiquette and will rub people the wrong way.
Firebase::ServerTimestamp() is not a function to get a timestamp from the server. It’s a special value you can set a Firebase document’s field to, to tell Firebase to replace it with a timestamp from their servers.