mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix unlocalized date in status bar.
It seems that std::locales created by boost::locale::generator are not entirely compatible: If used to create a new locale with a facet for boost::date_time one ends up with the C locale and the facet. For the time being avoid the problem by using boost::locale to format dates and times. std::chrono gets calendar functions in C++20 so we can switch date-time backends once we can adopt it.
This commit is contained in:
@@ -392,7 +392,7 @@ TEST(gnc_datetime_constructors, test_gncdate_neutral_constructor)
|
||||
if (gncdt.offset() >= max_western_offset &&
|
||||
gncdt.offset() <= max_eastern_offset)
|
||||
{
|
||||
EXPECT_EQ(atime.format("%d-%m-%Y %H:%M:%S %z"), "20-04-2017 10:59:00 UTC");
|
||||
EXPECT_EQ(atime.format("%d-%m-%Y %H:%M:%S %Z"), "20-04-2017 10:59:00 GMT");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user