Skip to content

Commit 71d6de6

Browse files
add note about %+
1 parent a7419ce commit 71d6de6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/src/expressions/scalars.rs

+1
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ impl PrimitiveType {
400400
let mut timestamp = NaiveDateTime::parse_from_str(raw, "%Y-%m-%d %H:%M:%S%.f");
401401

402402
if timestamp.is_err() && *self == Timestamp {
403+
// Note: `%+` specifies the ISO 8601 / RFC 3339 format
403404
timestamp = NaiveDateTime::parse_from_str(raw, "%+");
404405
}
405406
let timestamp = timestamp.map_err(|_| self.parse_error(raw))?;

0 commit comments

Comments
 (0)