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

[BUG] Days in leap year are not correctly retrieved from the controller #368

Conversation

PTKu
Copy link
Contributor

@PTKu PTKu commented Jan 24, 2025

This pull request includes several changes to the AXSharp.Connector.S71500.WebAPI project, primarily focused on updating date and time handling methods and improving test coverage.

Date and Time Handling Updates:

Test Coverage Improvements:

Project Configuration:

Replaced custom leap year adjustments with UTC-based methods:
- In `WebApiDate.cs`, replaced `AdjustForLeapDate` with `GetDateOnly`.
- In `WebApiDateTime.cs`, replaced `AdjustForLeapDateTime` with `ToUtcDateTime`.
- In `WebApiLDate.cs`, replaced `AdjustForLeapDate` with `GetDateOnly`.
- In `WebApiLDateTime.cs`, replaced `AdjustForLeapDateTime` with `ToUtcDateTime`.
- In `WebApiConnectorExtensions.cs`, removed `AdjustForLeapDate` and `AdjustForLeapDateTime`, added `GetDateOnly` and `ToUtcDateTime`.

Updated tests:
- In `WebApiPrimitiveTests.cs`, updated leap year test dates and uncommented assertion.

Added new Visual Studio solution file:
- `ax-test-project.sln` for `ax_test_project` with Debug and Release configurations.
@PTKu PTKu marked this pull request as ready for review January 24, 2025 09:07
@PTKu PTKu requested review from kuh0005 and TomKovac January 24, 2025 09:07
@PTKu PTKu merged commit a907ddd into dev Jan 24, 2025
2 checks passed
@PTKu PTKu deleted the 203-bug-days-in-leap-year-are-not-correctly-retrieved-from-the-controller branch January 24, 2025 09:08
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.

[BUG] Days in leap year are not correctly retrieved from the controller
1 participant