mirror of
https://github.com/esp8266/Arduino.git
synced 2025-11-28 17:36:39 +03:00
configTime(tzsec,dstsec,): fix UTC/local management (#6993)
* configTime(tzsec,dstsec,): fix UTC/local management This PR also remove dead code since probably newlib updates The NTP-TZ-DST example is also updated * restore sntp_set_timezone_in_seconds() fixes #6678 * +configTzTime()
This commit is contained in:
@@ -281,6 +281,13 @@ void configTime(int timezone, int daylightOffset_sec, const char* server1,
|
||||
void configTime(const char* tz, const char* server1,
|
||||
const char* server2 = nullptr, const char* server3 = nullptr);
|
||||
|
||||
// esp32 api compatibility
|
||||
inline void configTzTime(const char* tz, const char* server1,
|
||||
const char* server2 = nullptr, const char* server3 = nullptr)
|
||||
{
|
||||
configTime(tz, server1, server2, server3);
|
||||
}
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#include "pins_arduino.h"
|
||||
|
||||
Reference in New Issue
Block a user