Skip to content

Commit 5306698

Browse files
cecillepull[bot]
authored andcommitted
Timesync: Force call to delegate so we get time source (#29440)
1 parent 036803c commit 5306698

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/app/clusters/time-synchronization-server/time-synchronization-server.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,10 @@ void TimeSynchronizationServer::Init()
466466
{
467467
ClearDSTOffset();
468468
}
469-
System::Clock::Microseconds64 utcTime;
470469

471-
if (System::SystemClock().GetClock_RealTime(utcTime) == CHIP_NO_ERROR &&
472-
!RuntimeOptionsProvider::Instance().GetSimulateNoInternalTime())
473-
{
474-
mGranularity = GranularityEnum::kMinutesGranularity;
475-
}
470+
// Set the granularity to none for now - this will force us to go to the delegate so it can
471+
// properly report the time source
472+
mGranularity = GranularityEnum::kNoTimeGranularity;
476473

477474
// This can error, but it's not clear what should happen in this case. For now, just ignore it because we still
478475
// want time sync even if we can't register the deletgate here.

0 commit comments

Comments
 (0)