Opened 7 years ago

Closed 7 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:
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 7 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by akshay, 7 years ago

patch: 01

comment:2 by pulkomandy, 7 years ago

Resolution: fixed
Status: newclosed

Applied in hrev51376. Thanks!

Note: See TracTickets for help on using tickets.