Opened 2 years ago

Closed 2 years ago

#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


  • 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 2 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 2 years ago by akshay

Has a Patch: set

comment:2 Changed 2 years ago by pulkomandy

Resolution: fixed
Status: newclosed

Applied in hrev51376. Thanks!

Note: See TracTickets for help on using tickets.