#13684 closed bug (fixed)

Fix BDateFormatTest: Consider timezone in test cases.

Reported by: akshay Owned by: PulkoMandy
Priority: normal Milestone: Unscheduled
Component: Kits/Locale Kit Version: R1/Development
Keywords: unittests Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

  • Issue: A time_t value of say '12345678' results into different timestamps in different timezones. So the expected output will not match the result of BDateFormat::Format() if the calendar's timezone is different from the timezone of the expected output, and the tests 'TestFormat' and 'TestCustomFormat' will fail.
  • Fix: Add timezone information in the test cases and pass the timezone while calling BDateFormat::Format() in order to set the calendar's timezone same as that of the expected output.

Attachments (1)

0001-Fix-BDateFormatTest-Consider-timezone-in-test-cases.patch (6.4 KB) - added by akshay 10 months ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 10 months ago by akshay

Has a Patch: set

comment:2 Changed 10 months ago by PulkoMandy

Resolution: fixed
Status: newclosed

Applied in hrev51376. Thanks!

Note: See TracTickets for help on using tickets.