Reranko05 opened a new pull request, #49953:
URL: https://github.com/apache/arrow/pull/49953

   ### Rationale for this change
   
   As discussed in PR #49887, the Gandiva datetime test utilities currently use 
`mktime()`, which interprets timestamps as local time and can behave 
differently across platforms and DST boundaries.
   
   This PR switches the test utilities to `timegm()` so timestamps are 
interpreted consistently as UTC. This also removes the existing workaround 
logic in `Epoch()` that was previously needed for `mktime()` behavior on 
Windows/MSVC.
   
   ### What changes are included in this PR?
   
   * replaced `mktime()` with `timegm()` in `date_time_test.cc`
   * added a small Windows compatibility mapping for `_mkgmtime`
   * removed the existing DST/localtime workaround logic in `Epoch()`
   
   ### Are these changes tested?
   
   * Re-ran `DateTimeTestProjector.TestFromUtcTimestamp` repeatedly locally
   * Re-ran the full `gandiva-projector-test` suite successfully
   
   ### Are there any user-facing changes?
   
   No.
   
   Github Issue:  #49952 


-- 
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]

Reply via email to