nankeChen75 opened a new pull request, #12888:
URL: https://github.com/apache/gravitino/pull/12888

   ### What changes were proposed in this pull request?
   
   Configure `JsonDateSerializer` to format dates using UTC instead of the
   system default timezone.
   
   Add a unit test that changes the system default timezone and verifies
   that the serialized value remains in UTC.
   
   ### Why are the changes needed?
   `JsonDateSerializer` currently formats a date using the system default
   timezone while appending the literal `Z` suffix. This may produce an
   incorrect timestamp when Gravitino runs outside UTC.
   
   Fix: #8204
   
   ### Does this PR introduce any user-facing change?
   
   Yes. Serialized Ranger date values are now consistently represented in
   UTC.
   
   ### How was this patch tested?
   
   - Added `TestJsonDateSerializer.testSerializeUsesUtcTimezone`.
   - Ran the authorization-ranger unit test successfully.
   - Ran Spotless successfully.


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