Fixed ConvertFromUnix()

This commit is contained in:
Alex
2023-02-25 04:52:09 +02:00
parent 744895afd6
commit 4d279f0d12
2 changed files with 37 additions and 22 deletions

View File

@ -121,7 +121,7 @@ namespace NetworkInterfaceManager
udp->Bind(NTP_Socket, ntp);
int UnixTimestamp = ntp->ReadTime();
Time::Clock time = Time::ConvertFromUnix(UnixTimestamp);
DbgWriteScreen("NTP: %d - %d.%d.%d %d:%d:%d", UnixTimestamp,
DbgWriteScreen("NTP: %d - %d.%d.%d %d:%d:%d", time.Counter,
time.Day, time.Month, time.Year,
time.Hour, time.Minute, time.Second);
TaskManager->Sleep(200);