Skip to content

Commit

Permalink
docs: add utc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Aug 29, 2024
1 parent bfd007c commit 2b3de7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gov-action-contracts/util/OfficeHoursAction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2b3de7d

Please sign in to comment.