[Bug 25621] New: Some tests in t/DateUtils.t fail when timezone is not UTC

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 25621] New: Some tests in t/DateUtils.t fail when timezone is not UTC

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25621

            Bug ID: 25621
           Summary: Some tests in t/DateUtils.t fail when timezone is not
                    UTC
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: Test Suite
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

To reproduce:
1. Verify that TZ environment variable is not defined
2. Verify that $KOHA_CONF does not contain <timezone>
3. Run `date` to verify that you have a local time different than UTC
4. prove t/DateUtils.t

Expected output:
% prove t/DateUtils.t
t/DateUtils.t .. 1/76
#   Failed test 'dt_from_string handles seconds with 1 decimal place'
#   at t/DateUtils.t line 130.
#          got: '1325447940'
#     expected: '1325462340'

#   Failed test 'dt_from_string handles seconds with 2 decimal places'
#   at t/DateUtils.t line 133.
#          got: '1325447940'
#     expected: '1325462340'

#   Failed test 'dt_from_string handles seconds with 3 decimal places'
#   at t/DateUtils.t line 136.
#          got: '1325447999'
#     expected: '1325462399'

#   Failed test 'dt_from_string handles seconds with 3 decimal places and a
timezone'
#   at t/DateUtils.t line 139.
#          got: '1325447999'
#     expected: '1325462399'
# Looks like you failed 4 tests of 76.

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25621] Some tests in t/DateUtils.t fail when timezone is not UTC

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25621

--- Comment #1 from Julian Maurice <[hidden email]> ---
Created attachment 105433
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105433&action=edit
Bug 25621: Fix DateUtils tests when timezone is not UTC

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25621] Some tests in t/DateUtils.t fail when timezone is not UTC

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25621

Julian Maurice <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |Needs Signoff

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 25621] Some tests in t/DateUtils.t fail when timezone is not UTC

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25621

Jonathan Druart <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]-c
                   |                            |ommunity.org
             Status|Needs Signoff               |Failed QA
         Depends on|                            |18330

--- Comment #2 from Jonathan Druart <[hidden email]> ---
There is a bug in Koha::DateUtils, the timezone should not make the tests fail.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18330
[Bug 18330] REST API: Date-time handling
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/