0

I am making an android online game which user participates in real time . I have managed to get the server Realtime date , time and timestamp, offset too. What can I do to set the server time in my app, so that if user changes their device local time than also the time in app should show server time. I don't want to use Device local time. When anytime the app is open then the server time should sync itself & when the user changes time local time it should broadcast to the app about the changes , and sync the server time. Example suppose user local time is set 2:13PM , but real server time is 2:10PM than app should sync and set the time to 2:10 and i should be able to use the Server time thought out my app with each second passing.

Please provide some help , I am new to programming.

0 Answers0