Volneirj / project_iv_ci

0 stars 2 forks source link

Handle Timezone-Related Issues in Book Issuance #32

Open Volneirj opened 3 months ago

Volneirj commented 3 months ago

As a developer, I want to ensure that all time-related operations in the book issuance feature handle timezone differences accurately, so that users do not encounter errors due to time discrepancies when issuing or returning books.

Acceptance Criteria

Failing test: Image Output from test: Image Test Model Image

Volneirj commented 3 months ago

How the error has been handled:

Model Change Replaced the due_date for a datetime.now for timezone.now. Image

Test Changes Remove the need to sanitize the expected due_date during the test. Image

Output after changes The dates now have the same format and are not giving error when subtract the timedelta. Image