gnucash unstable: Fix date offset error in datetime test.
John Ralls
jralls at code.gnucash.org
Tue Dec 19 17:34:37 EST 2017
Updated via https://github.com/Gnucash/gnucash/commit/7c57ad18 (commit)
from https://github.com/Gnucash/gnucash/commit/baad2097 (commit)
commit 7c57ad18cd5dd4566cc99e959da396c757aac88a
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Dec 19 14:34:10 2017 -0800
Fix date offset error in datetime test.
diff --git a/libgnucash/engine/test/gtest-gnc-datetime.cpp b/libgnucash/engine/test/gtest-gnc-datetime.cpp
index 3f1712d..364a7dc 100644
--- a/libgnucash/engine/test/gtest-gnc-datetime.cpp
+++ b/libgnucash/engine/test/gtest-gnc-datetime.cpp
@@ -335,7 +335,7 @@ TEST(gnc_datetime_constructors, test_gncdate_neutral_constructor)
TEST(gnc_datetime_functions, test_format)
{
GncDateTime atime(2394187200); //2045-11-13 12:00:00 Z
- if ((atime.offset() / 3600) > 11 || (atime.offset() / 3600) < -11)
+ if ((atime.offset() / 3600) > 11)
EXPECT_EQ(atime.format("%d-%m-%Y"), "14-11-2045");
else
EXPECT_EQ(atime.format("%d-%m-%Y"), "13-11-2045");
Summary of changes:
libgnucash/engine/test/gtest-gnc-datetime.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list