diff --git a/lib/MycilaTime/MycilaTime.h b/lib/MycilaTime/MycilaTime.h index 6ac69860..8e8d11c1 100644 --- a/lib/MycilaTime/MycilaTime.h +++ b/lib/MycilaTime/MycilaTime.h @@ -4,8 +4,6 @@ */ #pragma once -#include - #include #include @@ -33,7 +31,7 @@ namespace Mycila { static time_t getUnixTime() { time_t now; struct tm timeinfo; - if (!NTP.isSynced() || !getLocalTime(&timeinfo, 5)) + if (!getLocalTime(&timeinfo, 5)) return 0; time(&now); return now;