Skip to content

Commit

Permalink
Merge pull request #262 from LWS49/deadlineCanBeInvalid
Browse files Browse the repository at this point in the history
Deadline can be invalid
  • Loading branch information
LWS49 authored Apr 12, 2024
2 parents d85cb3f + d54c4e6 commit 88e7b56
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ Using this function, you can add a task to an internship so that you won't forge

**Format:** `addtask INDEX /task TASK`

- `INDEX` is the internship index you want to add the task to.
- `TASK` is the task you want to add to the internship.

<div markdown="span" class="alert alert-success">
Expand Down Expand Up @@ -694,7 +695,8 @@ Using this function, you can set the deadline to a task under an internship so t
**Format:** `setdeadline INDEX /selecttask INDEX /deadline DEADLINE`

- The two `INDEX` denote the internship index and task index respectively.
- `DEADLINE` is the deadline you want to set for the task. It must be in the format `DD/MM/YYYY`, and a valid date.
- `DEADLINE` is the deadline you want to set for the task. It must be in the format `DD/MM/YYYY`. The day, month and year fields must be valid
(day must be between 1 and 31 inclusive, month must be between 1 and 12 inclusive, year must be a valid 4 digit number)

<div markdown="span" class="alert alert-success">

Expand Down Expand Up @@ -816,8 +818,8 @@ Only do so if you are an experienced user! <br>

1. **When using multiple screens**, if you move the application to a secondary screen, and later switch to using only the primary screen, the GUI will open off-screen.<br>
**The solution** is to delete the `preferences.json` file from the folder where you installed the application. Then, run the application again.
2. When using the `add` command, the `/phone` parameter allows for more digits that are necessary. <br>
**The solution** is to manually ensure that the length of the phone numbers you input are correct.
2. The deadline field accepts potentially invalid dates as long as the day, month and year are individually valid, including past dates.


[Go to Table of Contents](#table-of-contents)

Expand All @@ -838,6 +840,6 @@ Only do so if you are an experienced user! <br>
| `/role` | Role for the Internship | Any text, numbers, or spaces |
| `/remark` | Remark for the Internship | Any text, numbers, or spaces |
| `/task` | Task for the Internship | Any text, numbers, or spaces |
| `/deadline`| Deadline for the Task | Valid format: `DD/MM/YYYY`<br>- The date must be a valid date. |
| `/deadline`| Deadline for the Task | Valid format: `DD/MM/YYYY`<br>- The day, month and year fields must be valid. |

[Go to Table of Contents](#table-of-contents)

0 comments on commit 88e7b56

Please sign in to comment.