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

john <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <[email protected]>

> On Apr 6, 2022, at 9:39 PM, Kevin Buckley <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.