Skip to content

Fix pre-epoch fractional SystemTime conversion#117

Open
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix/pre-epoch-fractional-system-time
Open

Fix pre-epoch fractional SystemTime conversion#117
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix/pre-epoch-fractional-system-time

Conversation

@fallintoplace

Copy link
Copy Markdown

Summary

  • fix EdmDateTimeOffset to SystemTime conversion for fractional timestamps before the Unix epoch
  • borrow from the seconds field before subtracting negative fractional timestamps from UNIX_EPOCH
  • add a regression test for 1969-12-31T23:59:59.5Z

Validation

  • cargo fmt -p nv-redfish-core -- --check
  • cargo test -p nv-redfish-core

@copy-pr-bot

copy-pr-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

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