Hi, I'm using this Client GetTime function to get server time for preventing players to cheat by changing DateTime of device. But the issue I'm facing at random is that it returns the garbage value or redundant value.
Below is the JSON of my player data in which I have stored the server time I got from server
What could be the problem here?
Check "deployedTime" in the picture I have attached of my JSON
Answer by SethDu · Jun 19 at 07:42 AM
What SDK you are using?
The type of Time in the callback response is DateTime. If you are using a strong typed language, you need to convert it before use.
ps. If you are referring this doc:https://docs.microsoft.com/en-us/rest/api/playfab/client/title-wide-data-management/gettime?view=playfab-rest#gettimeresult, we have noticed that the this API documentation is incorrect and will file a doc change request shortly.
Hey @SethDu, I'm using this function of Client SDK
and I know it's DateTime and I'm recieving it in a DateTime object but it sometimes give me the response as shown in the image I have attached. Please check "deployedTime"
Player Data can only store string. I have tested GetTime API, and the result is fine. The thing you need to do seems to convert the DateTime to String.
I am storing the DateTime in string format using the System.Convert class in C#
What I'm stating here as a problem is that it sometimes gives the value as shown in the image which an incorrect timestamp. Could please look into it?
Can you link me to the documentation where it shows how to write custom Playstream events?
Getting InvalidDropTable when calling EvaluateRandomResultTable 1 Answer
Are Epic Games Store SDK API calls available as a REST API callable by a Cloud Script? 1 Answer
UpdateCharacterData problem and characterID . 2 Answers
Possible for a server to retrieve its own tags (GameInfo)? 1 Answer
Google Login for Android and iOS 4 Answers