Skip to content

Commit 2f78d17

Browse files
committed
Fix error message for invalid DateTime parsing of --begin/--end options
1 parent 55fb47c commit 2f78d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interpreter/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub fn parse_datetime(value: &str) -> Result<DateTime<Local>, String> {
115115
} else {
116116
let date = value
117117
.parse::<NaiveDate>()
118-
.map_err(|err| format!("valid RFC3339-formatted (YYYY-MM-DDTHH:MM:SS[.ssssss][±hh:mm]) date or datetime: {err}"))?;
118+
.map_err(|err| format!("valid RFC3339-formatted (YYYY-MM-DDTHH:MM:SS[.ssssss][±hh:mm]|Z) date or datetime: {err}"))?;
119119
Ok(date
120120
.and_hms_opt(0, 0, 0)
121121
.unwrap()

0 commit comments

Comments
 (0)