samedi 30 juillet 2016

Obtain correct UTM/GMT time regardless of users clock correctness

I recently discovered that attempting to get UTM/GMT time can fail (not return the correct time &/or date) if the user has not set their system time correctly.

Is there a way to always obtain the correct time in UTM/GMT using C11, C++11 or C++14 (or even better using a WinAPI function)? If not maybe my application can get this from a HTTP request to some server and read the HTTP response headers?

Aucun commentaire:

Enregistrer un commentaire