You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(authserver): PostgreSQL and H2 timestamps without time zone are stored in the JVM's zone #354
Found in the round-2 review of #350 (#345). Pre-existing; to be fixed before deployment.
Problem
On PostgreSQL (and on H2), the AS's time columns are TIMESTAMP without a time zone, for example oauth2_registered_client.locked_until and Spring Authorization Server's oauth2_authorization issued/expires times. A java.sql.Timestamp is written and read in the JVM's default time zone. If the JVM does not run in UTC, the stored value is local time without its offset:
Activity