Skip to content

Commit f5efbad

Browse files
committed
Api docs for date time format
1 parent 1724218 commit f5efbad

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/Http/Requests/V1/Report/ReportStoreRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function rules(): array
4040
'required',
4141
'boolean',
4242
],
43-
// After this date the report will be automatically set to private (is_public=false) (ISO 8601 format, UTC timezone)
43+
// After this date the report will be automatically set to private (is_public=false) (Format: "Y-m-d\TH:i:s\Z", UTC timezone, Example: "2000-02-22T14:58:59Z")
4444
'public_until' => [
4545
'nullable',
4646
'date_format:Y-m-d\TH:i:s\Z',

app/Http/Requests/V1/TimeEntry/TimeEntryStoreRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ public function rules(): array
5959
->where('project_id', $this->input('project_id'));
6060
})->uuid()->withMessage(__('validation.task_belongs_to_project')),
6161
],
62-
// Start of time entry (ISO 8601 format, UTC timezone)
62+
// Start of time entry (Format: "Y-m-d\TH:i:s\Z", UTC timezone, Example: "2000-02-22T14:58:59Z")
6363
'start' => [
6464
'required',
6565
'date_format:Y-m-d\TH:i:s\Z',
6666
],
67-
// End of time entry (ISO 8601 format, UTC timezone)
67+
// End of time entry (Format: "Y-m-d\TH:i:s\Z", UTC timezone, Example: "2000-02-22T14:58:59Z")
6868
'end' => [
6969
'nullable',
7070
'date_format:Y-m-d\TH:i:s\Z',

app/Http/Requests/V1/TimeEntry/TimeEntryUpdateRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ public function rules(): array
5959
->where('project_id', $this->input('project_id'));
6060
})->uuid()->withMessage(__('validation.task_belongs_to_project')),
6161
],
62-
// Start of time entry (ISO 8601 format, UTC timezone)
62+
// Start of time entry (Format: "Y-m-d\TH:i:s\Z", UTC timezone, Example: "2000-02-22T14:58:59Z")
6363
'start' => [
6464
'date_format:Y-m-d\TH:i:s\Z',
6565
],
66-
// End of time entry (ISO 8601 format, UTC timezone)
66+
// End of time entry (Format: "Y-m-d\TH:i:s\Z", UTC timezone, Example: "2000-02-22T14:58:59Z")
6767
'end' => [
6868
'nullable',
6969
'date_format:Y-m-d\TH:i:s\Z',

0 commit comments

Comments
 (0)