Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | salihkallai |
I want sync time with NTP server to prevent game time cheating. I succesfully implemented this in LIbgdx (Java) using Apache Commons library. But How to implement this in Godot. Please note that the question is only for NTP , I dont want http third party time sync services.
You may be able to get local time via the OS class.
Ertain | 2019-05-25 14:55
I found an alternate solution by using Date from header in Http request. But I dont know how accurate it
salihkallai | 2019-05-25 16:26
If I were to compare times from within the engine (using Godot-based server and client), I would check the local time. But getting it from the HTTP header may be more secure.
Ertain | 2019-05-25 20:49