Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect behavior of ToDateTime operator #1345

Open
brynrhodes opened this issue Mar 20, 2024 · 0 comments
Open

Incorrect behavior of ToDateTime operator #1345

brynrhodes opened this issue Mar 20, 2024 · 0 comments
Labels

Comments

@brynrhodes
Copy link
Member

The spec clearly indicates the ToDateTime(Date) operator will return a DateTime with the time components unspecified. The following tests validate this behavior (from the published spec test suite):

ToDateTimeDate
ToDateTimeTimeUnspecified

These tests were missing from the test suite in the engine, and when I added them, they fail because the ToDateTime implementation in the engine is setting time components to 0. I've added these failing tests to the skip list, but the ToDateTime behavior should be corrected.

@JPercival JPercival added the bug label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants