Skip to content

Commit

Permalink
Update the explanation of the lockdown period relative date.
Browse files Browse the repository at this point in the history
  • Loading branch information
sharky98 committed Jan 26, 2024
1 parent c18e8d6 commit 52d2063
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions _documentation/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ You can deactivate that feature by setting the value to 0.

## Lockdown period

- `Lockdown period start` - a PHP date-format string `relative to now` and you will likely want to configure a start of a month like `first day of last month 00:00:00` or `first day of -2 month 00:00:00`
- `Lockdown period end` - a PHP date-format string `relative to now` and you will likely want to configure the end of a month like `last day of last month 23:59:59`, `last day of -2 month 23:59:59` or `first day of this month 00:00:00`
- `Lockdown period start` - a string of [PHP relative datetime format](https://www.php.net/manual/en/datetime.formats.php#datetime.formats.relative)
- You will likely want to configure a start of a month like `first day of last month 00:00:00` or `first day of -2 month 00:00:00`
- `Lockdown period end` - a string of [PHP relative datetime format](https://www.php.net/manual/en/datetime.formats.php#datetime.formats.relative)
- You will likely want to configure a start of a month like `last day of last month 23:59:59`, `last day of -2 month 23:59:59` or `first day of this month 00:00:00`
- `Time zone` - the timezone will be used to calculate the dates (might be important if you have users across multiple timezones, if empty the timezone of the current user is used
- `Lockdown grace period end (PHP relative date to lockdown period end)` - relative to the lockdown end (the end date will always be appended, but it could still be overwritten by using the `of` modifier), most users will likely want to use a relative period like `+12 hours`, `+10 days` or `+3 weeks`
- `Lockdown grace period end` - a string of [PHP relative datetime format](https://www.php.net/manual/en/datetime.formats.php#datetime.formats.relative) that will be applied to the `Lockdown period end`
- You will likely want to configure a relative period like `+12 hours`, `+10 days` or `+3 weeks`

The lockdown period (if activated) will prevent your users from changing timesheet records in the past.

Expand Down

0 comments on commit 52d2063

Please sign in to comment.