mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Merge branch 'boost-date'
Fix a couple more bugs which manifest on Fedora.
This commit is contained in:
commit
d4c537a9a5
@ -562,6 +562,8 @@ TimeZoneProvider::TimeZoneProvider(const std::string& tzname) : zone_vector {}
|
|||||||
auto this_time = ptime(date(1970, 1, 1),
|
auto this_time = ptime(date(1970, 1, 1),
|
||||||
time_duration(txi->timestamp / 3600, 0,
|
time_duration(txi->timestamp / 3600, 0,
|
||||||
txi->timestamp % 3600));
|
txi->timestamp % 3600));
|
||||||
|
try
|
||||||
|
{
|
||||||
auto this_year = this_time.date().year();
|
auto this_year = this_time.date().year();
|
||||||
//Initial case
|
//Initial case
|
||||||
if (last_time.is_not_a_date_time())
|
if (last_time.is_not_a_date_time())
|
||||||
@ -590,6 +592,11 @@ TimeZoneProvider::TimeZoneProvider(const std::string& tzname) : zone_vector {}
|
|||||||
new_rule));
|
new_rule));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch(boost::gregorian::bad_year err)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
last_time = this_time;
|
last_time = this_time;
|
||||||
last_info = this_info;
|
last_info = this_info;
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,7 @@ test_kvp_value_SOURCES = \
|
|||||||
test_kvp_value_LDADD = \
|
test_kvp_value_LDADD = \
|
||||||
$(top_builddir)/$(MODULEPATH)/libgnc-qof.la \
|
$(top_builddir)/$(MODULEPATH)/libgnc-qof.la \
|
||||||
$(GLIB_LIBS) \
|
$(GLIB_LIBS) \
|
||||||
|
$(GTEST_LIBS) \
|
||||||
$(BOOST_LDFLAGS)
|
$(BOOST_LDFLAGS)
|
||||||
|
|
||||||
if !GOOGLE_TEST_LIBS
|
if !GOOGLE_TEST_LIBS
|
||||||
@ -50,7 +51,7 @@ test_kvp_value_LDADD += $(top_builddir)/src/test-core/libgtest.a
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
test_kvp_value_CPPFLAGS = \
|
test_kvp_value_CPPFLAGS = \
|
||||||
-I$(GTEST_HEADERS) \
|
$(GTEST_HEADERS) \
|
||||||
-I$(top_srcdir)/$(MODULEPATH) \
|
-I$(top_srcdir)/$(MODULEPATH) \
|
||||||
$(GLIB_CFLAGS) \
|
$(GLIB_CFLAGS) \
|
||||||
$(BOOST_CPPFLAGS)
|
$(BOOST_CPPFLAGS)
|
||||||
@ -62,8 +63,7 @@ test_gnc_int128_SOURCES = \
|
|||||||
gtest-gnc-int128.cpp
|
gtest-gnc-int128.cpp
|
||||||
test_gnc_int128_CPPFLAGS = -I${GTEST_HEADERS}
|
test_gnc_int128_CPPFLAGS = -I${GTEST_HEADERS}
|
||||||
|
|
||||||
|
test_gnc_int128_LDADD = ${GTEST_LIBS}
|
||||||
test_gnc_int128_LDADD = $(GTEST_LIBS)
|
|
||||||
if !GOOGLE_TEST_LIBS
|
if !GOOGLE_TEST_LIBS
|
||||||
nodist_test_gnc_int128_SOURCES = \
|
nodist_test_gnc_int128_SOURCES = \
|
||||||
${GTEST_SRC}/src/gtest_main.cc
|
${GTEST_SRC}/src/gtest_main.cc
|
||||||
|
Loading…
Reference in New Issue
Block a user