Summary: | Circulation.t failing when comparing dates that seem identical | ||
---|---|---|---|
Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> |
Component: | Test Suite | Assignee: | Jonathan Druart <jonathan.druart> |
Status: | CLOSED FIXED | QA Contact: | Martin Renvoize (ashimema) <martin.renvoize> |
Severity: | major | ||
Priority: | P5 - low | CC: | fridolin.somers, martin.renvoize |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
19.11.00,19.05.05
|
|
Circulation function: | |||
Bug Depends on: | 22917 | ||
Bug Blocks: | 25551 | ||
Attachments: |
Bug 23234: Mock DateTime->now using the time zone
Bug 23234: Mock DateTime->now using the time zone |
Description
Jonathan Druart
2019-06-28 18:03:39 UTC
Created attachment 94652 [details] [review] Bug 23234: Mock DateTime->now using the time zone The timezone of the two dt was different, one was UTC, the other one was my local one. When we mocked DateTime->now we did not use the time zone, we must use dt_from_string instead Test plan: Make sure your environment has a different time zone than UTC `prove t/db_dependent/Circulation.t` should fail without this patch Upping severity, it's very annoying for people hitting this one (hard to write or execute those tests). Created attachment 95025 [details] [review] Bug 23234: Mock DateTime->now using the time zone The timezone of the two dt was different, one was UTC, the other one was my local one. When we mocked DateTime->now we did not use the time zone, we must use dt_from_string instead Test plan: Make sure your environment has a different time zone than UTC `prove t/db_dependent/Circulation.t` should fail without this patch Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> An annoying bug that's fixed nicely here.. Going straight for QA Nice work! Pushed to master for 19.11.00 Pushed to 19.05.x for 19.05.05 |