Skip to content

Commit

Permalink
Fix Timezone build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 24, 2024
1 parent 1b6e395 commit 35b1928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sming/Libraries/Timezone
6 changes: 3 additions & 3 deletions samples/SystemClock_NTP/app/NtpClientDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ using namespace TZ;
* For handling local/UTC time conversions
* This is for the UK, amend as required
*/
const Rule dstStart{"BST", Last, Sun, Mar, 1, 60};
const Rule stdStart{"GMT", Last, Sun, Oct, 2, 0};
const Rule dstStart{{"BST"}, Last, Sun, Mar, 1, 60};
const Rule stdStart{{"GMT"}, Last, Sun, Oct, 2, 0};

// Posix rule string
DEFINE_FSTR_LOCAL(tzstr, "GMT0BST,M3.5.0/1,M10.5.0")
Expand Down Expand Up @@ -80,7 +80,7 @@ void NtpClientDemo::ntpResult(NtpClient& client, time_t ntpTime)
SystemClock.setTime(ntpTime, eTZ_UTC);

// Now we've set the clock, we can determine the initial active timezone and maintain the offset
SystemClock.onCheckTimeZoneOffset([this](time_t systemTime) { checkTimeZoneOffset(systemTime); });
SystemClock.onCheckTimeZoneOffset([](time_t systemTime) { checkTimeZoneOffset(systemTime); });

/*
* Display the new time
Expand Down

0 comments on commit 35b1928

Please sign in to comment.