Skip to content

Convert NowTimestamp to Timestamp#7114

Merged
labkey-nicka merged 2 commits intodevelopfrom
fb_now_time_to_stamp
Oct 12, 2025
Merged

Convert NowTimestamp to Timestamp#7114
labkey-nicka merged 2 commits intodevelopfrom
fb_now_time_to_stamp

Conversation

@labkey-nicka
Copy link
Contributor

Rationale

Serialization of NowTimestamp is not resolved in the same way as java.sql.Timestamp even though it extends java.sql.Timestamp. Rather than looking for NowTimestamp everywhere and hooking up custom converters I've elected to just convert back all NowTimestamp to Timestamp immediately when setting the property values in Table.

Related Pull Requests

Changes

  • Check for NowTimestamp instances and convert to Timestamp before setting property.

@labkey-nicka labkey-nicka self-assigned this Oct 10, 2025
Copy link
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test is passing in this FB. I didn't manually test since it seems like the test is sufficient.

@labkey-nicka labkey-nicka merged commit 263a262 into develop Oct 12, 2025
11 checks passed
@labkey-nicka labkey-nicka deleted the fb_now_time_to_stamp branch October 12, 2025 15:38
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.

2 participants