Answer the question
In order to leave comments, you need to log in
How to set identical time on server and client?
I make a request to the server and only GMT is sent back from the server
<?php
echo gmdate("Y-m-d H:i:s");
?>
string _servetTime = answer;
string _clientTime = DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss");
serverTime.GetComponent<Text>().text = _servetTime;
clientTime.GetComponent<Text>().text = _clientTime;
2020-08-13 11:14:47
2020-08-13 11:14:40
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question