[Gnucash-changes] r12313 - gnucash/trunk/src/engine/test - Add
commented-out test case demonstrating lack of year 2038 support.
Chris Shoemaker
chris at cvs.gnucash.org
Tue Jan 10 21:19:43 EST 2006
Author: chris
Date: 2006-01-10 21:19:42 -0500 (Tue, 10 Jan 2006)
New Revision: 12313
Trac: http://svn.gnucash.org/trac/changeset/12313
Modified:
gnucash/trunk/src/engine/test/test-date.c
Log:
Add commented-out test case demonstrating lack of year 2038 support.
Modified: gnucash/trunk/src/engine/test/test-date.c
===================================================================
--- gnucash/trunk/src/engine/test/test-date.c 2006-01-10 22:10:22 UTC (rev 12312)
+++ gnucash/trunk/src/engine/test/test-date.c 2006-01-11 02:19:42 UTC (rev 12313)
@@ -28,7 +28,7 @@
/* The time, in seconds, everywhere on the planet, is always
* the same, and is independent of location. In particular,
* the time, in seconds, is identical to the local time in
- * Greewich (GMT).
+ * Greenwich (GMT).
*/
ts_2 = gnc_iso8601_to_timespec_gmt (str);
@@ -338,6 +338,12 @@
ts = gnc_iso8601_to_timespec_gmt ("2008-02-28 23:23:23.000000 -0000");
check_time (ts, do_print);
+ /* Here's a date ten days after the 2038 rollover that should work
+ if/when we support it. */
+ ts.tv_nsec = 0;
+ ts.tv_sec = (long long int) 0x7fffffff + 3600*24*10;
+ //check_time(ts, do_print);
+
/* Various 'special' times. What makes these so special? */
ts.tv_sec = 152098136;
ts.tv_nsec = 0;
More information about the gnucash-changes
mailing list