From 3d4f19f830d70362b51d2880c8a615ed890f6229 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 15 Mar 2026 13:40:18 +0800 Subject: [PATCH] [gnc-date.cpp] fix ifdef conditional, and comment --- libgnucash/engine/gnc-date.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgnucash/engine/gnc-date.cpp b/libgnucash/engine/gnc-date.cpp index cd5e64ba3f..f9fc8b2663 100644 --- a/libgnucash/engine/gnc-date.cpp +++ b/libgnucash/engine/gnc-date.cpp @@ -241,7 +241,7 @@ gnc_timegm (struct tm* time) *time = static_cast(gncdt); time->tm_sec -= gncdt.offset(); normalize_struct_tm(time); -#ifdef HAVE_STRUcT_TM_GMTOFF +#ifdef HAVE_STRUCT_TM_GMTOFF time->tm_gmtoff = 0; #endif return static_cast(gncdt) - gncdt.offset(); @@ -409,7 +409,7 @@ time64CanonicalDayTime (time64 t) return gnc_mktime (&tm); } -/* NB: month is 1-12, year is 0001 - 9999. */ +/* NB: month is 0-11, year is 0001 - 9999. */ int gnc_date_get_last_mday (int month, int year) { static int last_day_of_month[12] =