From 0ef45c1fa376a83ebecc53bea113297094eb49ca Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 25 Aug 2019 17:31:27 +0200 Subject: [PATCH] Add IsDst() Add IsDst() --- sonoff/support_rtc.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sonoff/support_rtc.ino b/sonoff/support_rtc.ino index 9efe92e70..e75046598 100644 --- a/sonoff/support_rtc.ino +++ b/sonoff/support_rtc.ino @@ -83,6 +83,14 @@ bool MidnightNow(void) return false; } +bool IsDst(void) +{ + if (Rtc.time_timezone == Settings.toffset[1]) { + return true; + } + return false; +} + String GetBuildDateAndTime(void) { // "2017-03-07T11:08:02" - ISO8601:2004