This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new 9fda7eab0c9 Bump chrono-tz from 0.8 to 0.9 (#5596)
9fda7eab0c9 is described below

commit 9fda7eab0c9fb55c90194865ca921c094b78dae9
Author: Jeffrey Vo <[email protected]>
AuthorDate: Sat Apr 6 17:40:48 2024 +1100

    Bump chrono-tz from 0.8 to 0.9 (#5596)
---
 arrow-array/Cargo.toml    | 2 +-
 arrow/tests/array_cast.rs | 4 ++--
 arrow/tests/timezone.rs   | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arrow-array/Cargo.toml b/arrow-array/Cargo.toml
index 04eec8df637..0bc2facb537 100644
--- a/arrow-array/Cargo.toml
+++ b/arrow-array/Cargo.toml
@@ -45,7 +45,7 @@ arrow-buffer = { workspace = true }
 arrow-schema = { workspace = true }
 arrow-data = { workspace = true }
 chrono = { workspace = true }
-chrono-tz = { version = "0.8", optional = true }
+chrono-tz = { version = "0.9", optional = true }
 num = { version = "0.4.1", default-features = false, features = ["std"] }
 half = { version = "2.1", default-features = false, features = ["num-traits"] }
 hashbrown = { version = "0.14", default-features = false }
diff --git a/arrow/tests/array_cast.rs b/arrow/tests/array_cast.rs
index c73f4f50ac0..2d3167c928d 100644
--- a/arrow/tests/array_cast.rs
+++ b/arrow/tests/array_cast.rs
@@ -579,7 +579,7 @@ fn 
test_pretty_format_timestamp_second_with_incorrect_fixed_offset_timezone() {
     let err = format_timezone("08:00").unwrap_err().to_string();
     assert_eq!(
         err,
-        "Parser error: Invalid timezone \"08:00\": '08:00' is not a valid 
timezone"
+        "Parser error: Invalid timezone \"08:00\": failed to parse timezone"
     );
 }
 
@@ -588,6 +588,6 @@ fn 
test_pretty_format_timestamp_second_with_unknown_timezone() {
     let err = format_timezone("unknown").unwrap_err().to_string();
     assert_eq!(
         err,
-        "Parser error: Invalid timezone \"unknown\": 'unknown' is not a valid 
timezone"
+        "Parser error: Invalid timezone \"unknown\": failed to parse timezone"
     );
 }
diff --git a/arrow/tests/timezone.rs b/arrow/tests/timezone.rs
index b71d04d64be..d0db1d76e42 100644
--- a/arrow/tests/timezone.rs
+++ b/arrow/tests/timezone.rs
@@ -54,11 +54,11 @@ fn test_parse_timezone_invalid() {
     let cases = [
         (
             "2015-01-20T17:35:20-24:00",
-            "Parser error: Invalid timezone \"-24:00\": '-24:00' is not a 
valid timezone",
+            "Parser error: Invalid timezone \"-24:00\": failed to parse 
timezone",
         ),
         (
             "2023-01-01 04:05:06.789 +07:30:00",
-            "Parser error: Invalid timezone \"+07:30:00\": '+07:30:00' is not 
a valid timezone"
+            "Parser error: Invalid timezone \"+07:30:00\": failed to parse 
timezone"
         ),
         (
             // Sunday, 12 March 2023, 02:00:00 clocks are turned forward 1 
hour to

Reply via email to