Skip to content

Commit

Permalink
docs: comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Aug 29, 2024
1 parent 59347b3 commit fd2a46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gov-action-contracts/util/OfficeHoursAction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ contract OfficeHoursAction {
if (block.timestamp < minimumTimestamp) revert MinimumTimestampNotMet();

// Convert timestamp to weekday (1 = Monday, 7 = Sunday)
// Addiding 3 because Unix epoch (January 1, 1970) was a Thursday
// Addiding 4 because Unix epoch (January 1, 1970) was a Thursday
uint256 weekday = ((block.timestamp / 86_400 + 4) % 7);
if (weekday < minDayOfWeek || weekday > maxDayOfWeek) revert OutsideOfficeDays();

Expand Down

0 comments on commit fd2a46d

Please sign in to comment.