novemberkilo opened a new issue #901:
URL: https://github.com/apache/arrow-rs/issues/901
```
#[cfg(feature = "chrono-tz")]
#[test]
fn
test_temporal_array_timestamp_hour_with_dst_timezone_using_chrono_tz() {
//
// 1635577147 converts to 2021-10-30 17:59:07 in time zone
Australia/Sydney (AEDT)
// The offset (difference to UTC) is +11:00. Note that daylight
savings is in effect on 2021-10-30.
// When daylight savings is not in effect, Australia/Sydney has an
offset difference of +10:00.
let a = TimestampMillisecondArray::from_opt_vec(
vec![Some(1635577147000)],
Some("Australia/Sydney".to_string()),
);
let b = hour(&a).unwrap();
assert_eq!(17, b.value(0));
}
```
This test
[fails](https://github.com/novemberkilo/arrow-rs/commit/473e2e4eb4f3b47aa7110d1a23444647b1109665)
- it returns 16 instead of 17 and demonstrates that the offset for the
timezone is not correctly taking daylight savings into account.
__Originally posted by @novemberkilo in
https://github.com/apache/arrow-rs/pull/849#issuecomment-955647565__
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]