diff --git a/app/Http/Requests/V1/Report/ReportStoreRequest.php b/app/Http/Requests/V1/Report/ReportStoreRequest.php index 85413d15..44578618 100644 --- a/app/Http/Requests/V1/Report/ReportStoreRequest.php +++ b/app/Http/Requests/V1/Report/ReportStoreRequest.php @@ -40,7 +40,7 @@ class ReportStoreRequest extends FormRequest 'required', 'boolean', ], - // After this date the report will be automatically set to private (is_public=false) (ISO 8601 format, UTC timezone) + // 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") 'public_until' => [ 'nullable', 'date_format:Y-m-d\TH:i:s\Z', diff --git a/app/Http/Requests/V1/TimeEntry/TimeEntryStoreRequest.php b/app/Http/Requests/V1/TimeEntry/TimeEntryStoreRequest.php index ecd8449b..cd18130d 100644 --- a/app/Http/Requests/V1/TimeEntry/TimeEntryStoreRequest.php +++ b/app/Http/Requests/V1/TimeEntry/TimeEntryStoreRequest.php @@ -59,12 +59,12 @@ class TimeEntryStoreRequest extends FormRequest ->where('project_id', $this->input('project_id')); })->uuid()->withMessage(__('validation.task_belongs_to_project')), ], - // Start of time entry (ISO 8601 format, UTC timezone) + // Start of time entry (Format: "Y-m-d\TH:i:s\Z", UTC timezone, Example: "2000-02-22T14:58:59Z") 'start' => [ 'required', 'date_format:Y-m-d\TH:i:s\Z', ], - // End of time entry (ISO 8601 format, UTC timezone) + // End of time entry (Format: "Y-m-d\TH:i:s\Z", UTC timezone, Example: "2000-02-22T14:58:59Z") 'end' => [ 'nullable', 'date_format:Y-m-d\TH:i:s\Z', diff --git a/app/Http/Requests/V1/TimeEntry/TimeEntryUpdateRequest.php b/app/Http/Requests/V1/TimeEntry/TimeEntryUpdateRequest.php index 7a703af7..37b3b420 100644 --- a/app/Http/Requests/V1/TimeEntry/TimeEntryUpdateRequest.php +++ b/app/Http/Requests/V1/TimeEntry/TimeEntryUpdateRequest.php @@ -59,11 +59,11 @@ class TimeEntryUpdateRequest extends FormRequest ->where('project_id', $this->input('project_id')); })->uuid()->withMessage(__('validation.task_belongs_to_project')), ], - // Start of time entry (ISO 8601 format, UTC timezone) + // Start of time entry (Format: "Y-m-d\TH:i:s\Z", UTC timezone, Example: "2000-02-22T14:58:59Z") 'start' => [ 'date_format:Y-m-d\TH:i:s\Z', ], - // End of time entry (ISO 8601 format, UTC timezone) + // End of time entry (Format: "Y-m-d\TH:i:s\Z", UTC timezone, Example: "2000-02-22T14:58:59Z") 'end' => [ 'nullable', 'date_format:Y-m-d\TH:i:s\Z',