test_inject: fix localtime tests that depend on the current daylight saving time (#5583)
Which issue(s) this PR fixes: None.
What this PR does / why we need it: Three
inject_values_to_recordtests built the expected value with the current UTC offset, but they format a time on 2016-06-21. In a time zone with daylight saving time, the two offsets differ for half of the year.The windows-11-arm runner uses Pacific time while the other runners use UTC (actions/runner-images#15007). So the windows-11-arm jobs fail on master since daylight saving time ended in the US on 2026-11-01 (e.g. https://github.com/fluent/fluentd/actions/runs/41312649082/job/124866099700). A fix on the runner side would not help developers who run the tests in such a time zone.
This PR uses the UTC offset of the test date instead.
Docs Changes: None.
Release Note: None. This only fixes the tests.
🤖 Generated with Claude Code
Signed-off-by: Shizuo Fujita fujita@clear-code.com Co-authored-by: Claude Opus 5.5 noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Fluentd: Open-Source Log Collector
Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Fluentd helps you unify your logging infrastructure (Learn more about the Unified Logging Layer).
Quick Start
Development
Branch
Prerequisites
gitshould be inPATH. On Windows, you can useGithub for WindowsandGitShellfor easy setup.Install dependent gems
Use bundler:
Run test
You can run specified test via
TESTenvironment variable:More Information
Security
A third party security audit was performed by Cure53, you can see the full report here.
See SECURITY to contact us about vulnerability.
Contributors:
Patches contributed by great developers.