Remove date exceptions.

GncDate can now handle all dates between 1 Jan 0001 and 31 Dec 9999
(proleptic Gregorian).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22614 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2012-12-01 22:43:44 +00:00
parent 441b73d7d9
commit 369171ceff
3 changed files with 1 additions and 14 deletions

View File

@ -160,7 +160,6 @@ compare_single_sx( QofInstance* inst, gpointer user_data )
g_assert_cmpint (sx_2->autoCreateNotify, ==, sx_1->autoCreateNotify);
g_assert_cmpint (sx_2->advanceCreateDays, ==, sx_1->advanceCreateDays);
g_assert_cmpint (sx_2->advanceRemindDays, ==, sx_1->advanceRemindDays);
}
static void
@ -223,7 +222,6 @@ test_conn_index_functions( QofBackend *qbe )
g_assert (DBI_ERROR_NONE == dbi_conn_error( conn->conn, &errmsg));
}
g_slist_free( index_list );

Binary file not shown.

View File

@ -24,17 +24,6 @@ check_time (Timespec ts, gboolean always_print)
ts.tv_nsec /= 1000;
ts.tv_nsec *= 1000;
/* We just can't handle dates whose time_t doesn't fit in int - skip those
* cases. */
if (ts.tv_sec > (0x7fffffff - 3600 * 25))
return TRUE;
/* If we are east of UTC, we also can't handle dates whose tv_sec member
* falls in the range [0, -gnc_timezone(tm)) - make sure were are at least 12
* hours past the epoch to skip those cases too */
if (ts.tv_sec < 3600 * 12)
return TRUE;
gnc_timespec_to_iso8601_buff (ts, str);
/* The time, in seconds, everywhere on the planet, is always
@ -328,7 +317,7 @@ run_test (void)
if/when we support it. */
ts.tv_nsec = 0;
ts.tv_sec = (long long int) 0x7fffffff + 3600 * 24 * 10;
//check_time(ts, do_print);
check_time(ts, do_print);
/* Various 'special' times. What makes these so special? */
ts.tv_sec = 152098136;