Skip to content

Commit

Permalink
less strict time parser
Browse files Browse the repository at this point in the history
chronotope/chrono#1145

long term, we need to write our own rfc3339 parser
  • Loading branch information
aDotInTheVoid committed Sep 1, 2023
1 parent be4e2c4 commit af1c1a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion triphosphate-vocab/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
chrono = { version = "0.4.26", features = ["serde"] }
chrono = { version = "0.4.28" }
cid = "0.10.1"
oxilangtag = "0.1.3"
regex = "1.9.3"
Expand Down
2 changes: 1 addition & 1 deletion triphosphate-vocab/src/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ mod tests {
#[test]
fn test_invalid() {
for i in [
r#""1985-04-12 23:20:50.123Z""#,
// r#""1985-04-12 23:20:50.123Z""#,
// r#""1985-04-12t23:20:50.123Z""#, // TODO: chrono's parser is case sensitive
// r#""1985-04-12T23:20:50.123z""#,
r#""1985-04-12""#,
Expand Down

0 comments on commit af1c1a1

Please sign in to comment.