M
M
Maxim Siomin2021-03-26 14:10:28
Working with date/time
Maxim Siomin, 2021-03-26 14:10:28

Server with time?

Let me give you an example with games. Previously, in games, you could change the time on your phone and pick up the daily reward again. Now almost all games have their own server, and the date and time are requested from there. I do not have my own server, and there is no way to make it. Is there a suitable solution for me? I need to get the date and time from the internet in order to use them

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SKEPTIC, 2021-03-26
@MaxSiominDev

Any NTP server will do. This is if it's hard to do.
If it's easier - make an http request to any time source
Here, for example, api for time in Moscow time worldtimeapi.org/api/timezone/Europe/Moscow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question