History log of /haiku/src/tests/kits/locale/DateFormatTest.cpp
Revision Date Author Comments
# ed3f47fe 30-Aug-2017 Akshay Agarwal <agarwal.akshay.akshay8@gmail.com>

BDateFormatTest: Add tests for day and month names for all format syles.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>


# ffdbd128 26-Aug-2017 Akshay Agarwal <agarwal.akshay.akshay8@gmail.com>

Fix BDateFormatTest: Consider timezone in test cases.

* 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.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 5d5ec05b 27-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

B*Format: make immutable and remove locking

The language and formatting conventions can now only be set when
creating the objects. This removed the needs for locking them when
formatting to avoid some other thread changing the format while it's
being used.

Adjust tests and DeskBar TimeView to the API changes.


# 980b1bd0 20-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add more tests for the DateTimePatternGenerator

There are unexpected results in some cases, with the clock switching to
12 hours format even though the locale is set to use 24 hours.


# 26b0a53d 09-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add parsing support to BTimeFormat.


# 824cb460 08-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

DateTimeFormat: handle custom 24 hours clock.

The "j" format pattern selects a 12 or 24 hours clock automatically
depending on the locale, but it doesn't work when the format is forced
in the locale preflet or through the BFormattingConventions API. So we
manually pick either K or H depending on that setting.


# 97d07c8a 07-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add API for parsing dates.


# 090a0d76 07-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add an API to get month names.


# b16923f7 07-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add tests for BDateTimeFormat with custom formats.


# 4a3a4742 06-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Reimplement BDateTimeFormat using ICU support

* Avoid hardcoding the format to "date, time"
* Allows using DateTimePatternGenerator to create custom formats from a
set of fields.


# 699ddf44 07-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

DateFormatTest: fix after ICU upgrade

* Timezone names have changed. Test the medium time format which doesn't
include them, as we aren't forcing a specific one.
* French date format also changed to use 4 digit year name.


# 9577c31b 01-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Convert BTimeFormat tests to cppunit.


# dd21b466 30-Sep-2014 Adrien Destugues <pulkomandy@gmail.com>

Add tests for BDateFormat.


# 5d5ec05b1df089eff03f04a7122ac7cf355c4f3e 27-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

B*Format: make immutable and remove locking

The language and formatting conventions can now only be set when
creating the objects. This removed the needs for locking them when
formatting to avoid some other thread changing the format while it's
being used.

Adjust tests and DeskBar TimeView to the API changes.


# 980b1bd0459f3d8cdef6dbec38b8e5ea827a063e 20-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add more tests for the DateTimePatternGenerator

There are unexpected results in some cases, with the clock switching to
12 hours format even though the locale is set to use 24 hours.


# 26b0a53d1249e607a1b0be57c7f3ad33a9d3f36f 09-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add parsing support to BTimeFormat.


# 824cb460ac8ac243f8d0dd3c88e3d482df104599 08-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

DateTimeFormat: handle custom 24 hours clock.

The "j" format pattern selects a 12 or 24 hours clock automatically
depending on the locale, but it doesn't work when the format is forced
in the locale preflet or through the BFormattingConventions API. So we
manually pick either K or H depending on that setting.


# 97d07c8af2522f681cf61c37b0cfc36ec4684d1a 07-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add API for parsing dates.


# 090a0d76869e3b5e7ba7024a44b1ebcf84e23bed 07-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add an API to get month names.


# b16923f79fbcb223e5a355bba4d529a72474ab61 07-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Add tests for BDateTimeFormat with custom formats.


# 4a3a4742241f0843867e76cbc49694b9e4146b2f 06-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Reimplement BDateTimeFormat using ICU support

* Avoid hardcoding the format to "date, time"
* Allows using DateTimePatternGenerator to create custom formats from a
set of fields.


# 699ddf447c89331a9927f8e1132159e7737f481d 07-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

DateFormatTest: fix after ICU upgrade

* Timezone names have changed. Test the medium time format which doesn't
include them, as we aren't forcing a specific one.
* French date format also changed to use 4 digit year name.


# 9577c31bfe3c1543268e5be7bc9581d085d6a9ae 01-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Convert BTimeFormat tests to cppunit.


# dd21b4666eae8c41fa054b0aedce6f79a899e2d4 30-Sep-2014 Adrien Destugues <pulkomandy@gmail.com>

Add tests for BDateFormat.