[Bug 40138] New: Running t/db_dependent/api/v1/patrons.t in another timezone fails
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40138 Bug ID: 40138 Summary: Running t/db_dependent/api/v1/patrons.t in another timezone fails Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Test Suite Assignee: chris@bigballofwax.co.nz Reporter: m.de.rooy@rijksmuseum.nl QA Contact: testopia@bugs.koha-community.org TZ was Europe/Amsterdam t/db_dependent/api/v1/patrons.t # Failed test 'Filtering by date-time works' # at t/db_dependent/api/v1/patrons.t line 247. # got: undef # expected: '5752' # Failed test 'Filtering by date-time works' # at t/db_dependent/api/v1/patrons.t line 270. # got: undef # expected: '5752' # Looks like you failed 2 tests of 12. There are also date filters, but they work. The date time filtering here does not work (two hours difference now)? Couldnt find what happens here rightaway. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40138 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40138 --- Comment #1 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- A few cases with datetime values do implicitly assume UTC. So we could add that to the test. Not sure if we should. Also note for instance: my $last_seen_rfc3339 = $last_seen . "z"; Hardcoded timezone ;) If you have no timezone in koha-conf and you export TZ=Etc/UTC before running the test, they will pass. Otherwise you need this at the start: local $ENV; $ENV{TZ} = 'Etc/UTC'; t::lib::Mocks::mock_config( 'timezone', 'Etc/UTC' ); -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org