diff --git a/MCP7940.cpp b/MCP7940.cpp index 177fa7b..d07465b 100644 --- a/MCP7940.cpp +++ b/MCP7940.cpp @@ -135,7 +135,7 @@ DateTime::DateTime (const __FlashStringHelper* date, // *******************************************************************************************************************/ uint8_t DateTime::dayOfTheWeek() const { // Compute the DOW // uint16_t day = date2days(yOff, m, d); // compute the number of days // - return (day + 6) % 7; // Jan 1, 2000 is a Saturday, i.e. 6// + return ((day + 6) % 7)+1; // Jan 1, 2000 is a Saturday, i.e. 7// } // of method dayOfTheWeek() // // /******************************************************************************************************************* ** Function unixtime() to return the UNIX time, which is seconds since 1970-01-01 00:00:00 ** diff --git a/MCP7940.h b/MCP7940.h index 3afb3bb..18e4857 100644 --- a/MCP7940.h +++ b/MCP7940.h @@ -21,6 +21,7 @@ ** ** ** Vers. Date Developer Comments ** ** ====== ========== ============================= ============================================================== ** +** 1.0.7 2018-06-21 https://github.com/SV-Zanshin Bug #13 - DateTime.dayOfTheWeek() is 0-6 instead of 1-7 ** ** 1.0.6 2018-04-29 https://github.com/SV-Zanshin Bug #7 - Moved setting of param defaults to prototypes ** ** 1.0.6 2018-04-29 https://github.com/SV-Zanshin Bug #10 - incorrect setting of alarm with WKDAY to future date ** ** 1.0.5b 2017-12-18 https://github.com/SV-Zanshin Bug #8 - incorrect setting to 24-Hour clock **