You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2023/05/05 06:41:00 UTC

[jira] [Created] (PHOENIX-6949) Use j.u.Date.getTimeOffset() for displacement calculation

Istvan Toth created PHOENIX-6949:
------------------------------------

             Summary: Use j.u.Date.getTimeOffset() for displacement calculation
                 Key: PHOENIX-6949
                 URL: https://issues.apache.org/jira/browse/PHOENIX-6949
             Project: Phoenix
          Issue Type: Bug
          Components: core
            Reporter: Istvan Toth


The current code calculates the offset from the current timezone.
However, java.util.Date and its children (java.sql.Date*) already provide the getTimeOffset()  for the same.

This has the added benefit that imn the unlikely case that we receive the a java.sql.Date that is not in the JVM timezone, then we use its offset correctly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)