Skip to content

Commit

Permalink
Solve issue #123 with false time read
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKangs committed Sep 8, 2020
1 parent df68343 commit aa7c392
Showing 1 changed file with 65 additions and 5 deletions.
70 changes: 65 additions & 5 deletions src/RTC/RTC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,71 @@ const char* LoomRTC::daysOfTheWeek[] =
///////////////////////////////////////////////////////////////////////////////
const float LoomRTC::timezone_adjustment[] =
{
1 /* WAT */, 2 /* AT */, 3 /* ADT */, 4 /* AST */, 4 /* EDT */, 5 /* EST */, 5 /* CDT */,
6 /* CST */, 6 /* MDT */, 7 /* MST */, 7 /* PDT */, 8 /* PST */, 8 /* ALDT*/, 9 /* ALST*/,
10 /* HST */, 11 /* SST */, 0 /* GMT */, -1 /* BST */, -1 /* CET */, -2 /* CEST*/, -2 /* EET */,
-3 /* EEST*/, -3 /* BT */, -4 /* ZP4 */, -5 /* ZP5 */, -6 /* ZP6 */, -7 /* ZP7 */, -8 /* AWST*/,
-9 /* AWDT*/, -9.5 /* ACST*/, -10.5 /* ACDT*/, -10 /* AEST*/, -11 /* AEDT*/
1 /* WAT */,

2 /* AT */,

3 /* ADT */,

4 /* AST */,

4 /* EDT */,

5 /* EST */,

5 /* CDT */,

6 /* CST */,

6 /* MDT */,

7 /* MST */,

7 /* PDT */,

8 /* PST */,

8 /* AKDT*/,

9 /* AKST*/,

9 /* HADT */,

10 /* HAST */,

0 /* GMT */,

-1 /* BST */,

-1 /* CET */,

-2 /* CEST*/,

-2 /* EET */,

-3 /* EEST*/,

-3 /* BRT */,

-4 /* ZP4 */,

-5 /* ZP5 */,

-6 /* ZP6 */,

-7 /* ZP7 */,

-8 /* AWST*/,

-9 /* AWDT*/,

-9.5 /* ACST*/,

-10.5 /* ACDT*/,

-10 /* AEST*/,

-11 /* AEDT*/
};

///////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit aa7c392

Please sign in to comment.