Skip to content

Commit

Permalink
https://github.com/project-chip/connectedhomeip/pull/26082#discussion…
Browse files Browse the repository at this point in the history
…_r1242650472
  • Loading branch information
fessehaeve committed Mar 28, 2024
1 parent 284af37 commit ffa5263
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,6 @@ TimeState TimeSynchronizationServer::UpdateTimeZoneState()
}
if (activeTzIndex != 0)
{
mTimeZoneObj.validSize = tzList.size() - activeTzIndex;
auto newTimeZoneList = tzList.SubSpan(activeTzIndex);
VerifyOrReturnValue(mTimeSyncDataProvider.StoreTimeZone(newTimeZoneList) == CHIP_NO_ERROR, TimeState::kInvalid);
VerifyOrReturnValue(LoadTimeZone() == CHIP_NO_ERROR, TimeState::kInvalid);
Expand Down Expand Up @@ -911,7 +910,6 @@ TimeState TimeSynchronizationServer::UpdateDSTOffsetState()
}
if (activeDstIndex > 0)
{
mDstOffsetObj.validSize = dstList.size() - activeDstIndex;
auto newDstOffsetList = dstList.SubSpan(activeDstIndex);
VerifyOrReturnValue(mTimeSyncDataProvider.StoreDSTOffset(newDstOffsetList) == CHIP_NO_ERROR, TimeState::kInvalid);
VerifyOrReturnValue(LoadDSTOffset() == CHIP_NO_ERROR, TimeState::kInvalid);
Expand Down

0 comments on commit ffa5263

Please sign in to comment.