gnucash maint: Fix Travis test failure in gnc_iso8601_to_timespec_gmt.
John Ralls
jralls at code.gnucash.org
Mon Jun 20 19:11:25 EDT 2016
Updated via https://github.com/Gnucash/gnucash/commit/71297be8 (commit)
from https://github.com/Gnucash/gnucash/commit/2375270e (commit)
commit 71297be88eb18201417b380515a65a5b1cf7b583
Author: John Ralls <jralls at ceridwen.us>
Date: Mon Jun 20 16:11:13 2016 -0700
Fix Travis test failure in gnc_iso8601_to_timespec_gmt.
Can't reproduce failure on local systems, so this is a bit of a shot in the dark.
diff --git a/src/libqof/qof/gnc-date.c b/src/libqof/qof/gnc-date.c
index d84e950..50cd248 100644
--- a/src/libqof/qof/gnc-date.c
+++ b/src/libqof/qof/gnc-date.c
@@ -1455,7 +1455,8 @@ gnc_iso8601_to_timespec_gmt(const char *str)
* this in files by looking for minutes-only offsets and
* making the appropriate correction.
*/
- if (strlen(zone) > 2 + plus && offset > -100 && offset < 100)
+ if (offset != 0 && strlen(zone) > 2 + plus && offset > -100 &&
+ offset < 100)
{
strcpy(zone, "+0000");
second = 0.0;
Summary of changes:
src/libqof/qof/gnc-date.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list