Skip to content

Commit 1bfeaca

Browse files
committed
format error message
1 parent dc4f5a8 commit 1bfeaca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/src/models/utils/pre_validator_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def for_date_time(field_value: str, field_location: str, strict_timezone: bool =
121121
"- 'YYYY-MM-DD' — Full date only"
122122
"- 'YYYY-MM-DDThh:mm:ss%z' — Full date and time with timezone (e.g. +00:00 or +01:00)"
123123
"- 'YYYY-MM-DDThh:mm:ss.f%z' — Full date and time with milliseconds and timezone"
124-
"Date must not be in the future."
124+
"- Date must not be in the future."
125125
)
126126
if strict_timezone:
127127
error_message += (

backend/tests/utils/pre_validation_test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def test_date_time_value(
343343
"- 'YYYY-MM-DD' — Full date only"
344344
"- 'YYYY-MM-DDThh:mm:ss%z' — Full date and time with timezone (e.g. +00:00 or +01:00)"
345345
"- 'YYYY-MM-DDThh:mm:ss.f%z' — Full date and time with milliseconds and timezone"
346-
"Date must not be in the future."
346+
"- Date must not be in the future."
347347
)
348348

349349
if is_occurrence_date_time:

0 commit comments

Comments
 (0)