Skip to content

Fix deserializing LocalTime negative and above 24:00 (issue #88)#103

Open
rhidra wants to merge 1 commit into
KxSystems:masterfrom
rhidra:time_deserializing_88
Open

Fix deserializing LocalTime negative and above 24:00 (issue #88)#103
rhidra wants to merge 1 commit into
KxSystems:masterfrom
rhidra:time_deserializing_88

Conversation

@rhidra
Copy link
Copy Markdown

@rhidra rhidra commented Apr 4, 2026

Issue

#88

When deserializing a Q time type, the Java deserializer does not handle when the time is above or equal to 24:00:00. It also does not handle when the time is negative.

Implementation

The above 24hr time issue is handled by circling back to 00:00:00 using a modulo operator.

The negative time issue is handled by using an absolute value.

Unit tests were added for both changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant