File tree 1 file changed +11
-6
lines changed
src/app/clusters/time-synchronization-server
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -925,19 +925,24 @@ bool emberAfTimeSynchronizationClusterSetTimeZoneCallback(
925
925
}
926
926
else
927
927
{
928
- TimeState dstState = TimeSynchronizationServer::Instance ().UpdateDSTOffsetState ();
929
- TimeSynchronizationServer::Instance ().ClearDSTOffset ();
930
- if (dstState == TimeState::kActive || dstState == TimeState::kChanged )
931
- {
932
- emitDSTStatusEvent (commandPath.mEndpointId , false );
933
- }
934
928
response.DSTOffsetRequired = true ;
935
929
}
936
930
}
937
931
else
938
932
{
939
933
response.DSTOffsetRequired = true ;
940
934
}
935
+
936
+ if (response.DSTOffsetRequired )
937
+ {
938
+ TimeState dstState = TimeSynchronizationServer::Instance ().UpdateDSTOffsetState ();
939
+ TimeSynchronizationServer::Instance ().ClearDSTOffset ();
940
+ if (dstState == TimeState::kActive || dstState == TimeState::kChanged )
941
+ {
942
+ emitDSTStatusEvent (commandPath.mEndpointId , false );
943
+ }
944
+ }
945
+
941
946
commandObj->AddResponse (commandPath, response);
942
947
return true ;
943
948
}
You can’t perform that action at this time.
0 commit comments