Skip to content

Commit 283b174

Browse files
committed
fix error code - other errors in this file will be fixed in another PR
1 parent de52717 commit 283b174

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
@@ -600,7 +600,7 @@ CHIP_ERROR TimeSynchronizationServer::SetTimeZone(const DataModel::DecodableList
600600
if (CHIP_NO_ERROR != CopyCharSpanToMutableCharSpan(newTz.name.Value(), tempSpan))
601601
{
602602
ReturnErrorOnFailure(LoadTimeZone());
603-
return CHIP_IM_GLOBAL_STATUS(InvalidCommand);
603+
return CHIP_IM_GLOBAL_STATUS(ConstraintError);
604604
}
605605
tzStore.timeZone.name.SetValue(tempSpan);
606606
}

0 commit comments

Comments
 (0)