Skip to content

Commit 80cf879

Browse files
committed
fix error code - other errors in this file will be fixed in another PR
1 parent e5ee87b commit 80cf879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ CHIP_ERROR TimeSynchronizationServer::SetTimeZone(const DataModel::DecodableList
596596
if (CHIP_NO_ERROR != CopyCharSpanToMutableCharSpan(newTz.name.Value(), tempSpan))
597597
{
598598
ReturnErrorOnFailure(LoadTimeZone());
599-
return CHIP_IM_GLOBAL_STATUS(InvalidCommand);
599+
return CHIP_IM_GLOBAL_STATUS(ConstraintError);
600600
}
601601
tzStore.timeZone.name.SetValue(tempSpan);
602602
}

0 commit comments

Comments
 (0)