[GNC-dev] Typo in gnucash/gnome-utils/gnc-date-edit.c or incorrect string altogether?

john jralls at ceridwen.us
Thu Apr 7 12:37:27 EDT 2022



> On Apr 6, 2022, at 9:39 PM, Kevin Buckley <kevin.m.buckley at gmail.com> wrote:
> 
> Spotted this one recently
> 
> gnucash/gnome-utils/gnc-date-edit.c:658:
>                                            "Date/time represented in
> seconds since Januari 31st, 1970",
> 
> and assumed it was just a mis-typing of "January"
> 
> However, as I can't find another instance of "January 31st" in the codebase,
> was wondering if it should be "January 1st"
> 
> For context, it's in this function
> 
> gnc_date_edit_class_init
> 
> in this call
> 
>    g_object_class_install_property(object_class,
>                                    PROP_TIME,
>                                    g_param_spec_int64("time",
>                                            "Date/time (seconds)",
>                                            "Date/time represented in
> seconds since Januari 31st, 1970",
>                                            G_MININT64,
>                                            G_MAXINT64,
>                                            0,
>                                            G_PARAM_READWRITE));
> 

Yes to both: It should be 1 January 1970. I've clarified further by specifying that it's "since midnight UTC, 1 January 1970". Thanks for noticing.

Regards,
John Ralls



More information about the gnucash-devel mailing list