Reranko05 opened a new issue, #49952: URL: https://github.com/apache/arrow/issues/49952
### Describe the enhancement requested ## Description As discussed in PR #49887, the Gandiva datetime test utilities currently use `mktime()`, which interprets `tm` values as local time and may behave differently across platforms and DST boundaries. The existing `Epoch()` helper also contains a workaround for `mktime()` behavior on Windows/MSVC. A cleaner approach is to use `timegm()` (and `_mkgmtime()` on Windows) so the test utilities consistently interpret timestamps as UTC. This follow-up issue proposes: * replacing `mktime()` with `timegm()` in `date_time_test.cc` * adding a small Windows compatibility mapping for `_mkgmtime` * removing the existing DST/localtime workaround logic in `Epoch()` This should make the datetime tests more deterministic and avoid environment-dependent DST behavior. Follow-up from PR #49887 and issue #41605. ### Component(s) C++ -- 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]
