Skip to content

Make RecordMetadata.DateTime nullable (#1403)#1404

Merged
masesdevelopers merged 1 commit intorelease/2.9.Xfrom
1402-timestamp-in-recordmetadata-does-not-exist-if-hastimestamp-is-false-2-9-x
Feb 28, 2026
Merged

Make RecordMetadata.DateTime nullable (#1403)#1404
masesdevelopers merged 1 commit intorelease/2.9.Xfrom
1402-timestamp-in-recordmetadata-does-not-exist-if-hastimestamp-is-false-2-9-x

Conversation

@masesdevelopers
Copy link
Contributor

@masesdevelopers masesdevelopers commented Feb 28, 2026

Description

  • Make RecordMetadata.DateTime nullable

Return a nullable DateTime for RecordMetadata.DateTime and guard conversion with HasTimestamp(). This avoids producing a DateTime for records without a timestamp (returns null instead). Also updated the XML doc comment to reflect the nullable return and changed the conversion logic to only call Timestamp() when HasTimestamp() is true.

  • Apply the fix for test execution on GitHub

Applies the fix of masesgroup/KEFCore#446 to avoid errors when executing some tests

Related Issue

fix #1402

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

* Make RecordMetadata.DateTime nullable

Return a nullable DateTime for RecordMetadata.DateTime and guard conversion with HasTimestamp(). This avoids producing a DateTime for records without a timestamp (returns null instead). Also updated the XML doc comment to reflect the nullable return and changed the conversion logic to only call Timestamp() when HasTimestamp() is true.

* Apply the fix for test execution on GitHub

Applies the fix of masesgroup/KEFCore#446 to avoid errors when executing some tests
@masesdevelopers masesdevelopers self-assigned this Feb 28, 2026
@masesdevelopers masesdevelopers added bug Something isn't working KNet KNet related issue .NET Pull requests that update .net code labels Feb 28, 2026
@masesdevelopers masesdevelopers merged commit ddeca0f into release/2.9.X Feb 28, 2026
170 checks passed
@masesdevelopers masesdevelopers deleted the 1402-timestamp-in-recordmetadata-does-not-exist-if-hastimestamp-is-false-2-9-x branch February 28, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working KNet KNet related issue .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant