gnucash stable: Fix GncDateEntry date parsing oddities.

John Ralls jralls at code.gnucash.org
Thu Oct 12 18:57:55 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/44c278a8 (commit)
	from  https://github.com/Gnucash/gnucash/commit/55ab2a1c (commit)



commit 44c278a82c692b5b591eccaf052952b3cd248084
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Oct 12 15:51:35 2023 -0700

    Fix GncDateEntry date parsing oddities.
    
    The intent was always to default to today if the input string isn't
    parsable, but two problems prevented that: First,
    qof_scan_date_internal didn't check the return value of strptime and
    return FALSE if it failed and second gnc_date_edit_get_date_internal
    would unnecessarily munge a valid struct tm from gnc_tm_get_today_neutral.



Summary of changes:
 gnucash/gnome-utils/gnc-date-edit.c | 12 +++++-------
 libgnucash/engine/gnc-date.cpp      |  6 +++++-
 2 files changed, 10 insertions(+), 8 deletions(-)



More information about the gnucash-patches mailing list