From 2b3de7dbb12731aa9649355c5f33b1d1034cfde8 Mon Sep 17 00:00:00 2001 From: gzeon Date: Thu, 29 Aug 2024 20:14:12 +0900 Subject: [PATCH] docs: add utc comment --- src/gov-action-contracts/util/OfficeHoursAction.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gov-action-contracts/util/OfficeHoursAction.sol b/src/gov-action-contracts/util/OfficeHoursAction.sol index 13c0810f..6ebf0363 100644 --- a/src/gov-action-contracts/util/OfficeHoursAction.sol +++ b/src/gov-action-contracts/util/OfficeHoursAction.sol @@ -45,6 +45,7 @@ contract OfficeHoursAction { if (_maxLocalHour <= _minLocalHour) revert InvalidHourRange(); if (_minLocalHour > 24) revert InvalidHourStart(); if (_maxLocalHour == 0 || _maxLocalHour > 24) revert InvalidHourEnd(); + // UTC is between -12 and +14 https://en.wikipedia.org/wiki/UTC if (_localHourOffset < -12 || _localHourOffset > 14) revert InvalidLocalHourOffset(); if (_minDayOfWeek > _maxDayOfWeek) revert InvalidDayOfWeekRange(); if (_minDayOfWeek == 0 || _minDayOfWeek > 7) revert InvalidDayOfWeekStart();