[Bug 271867] security/gvmd missing dates in reports

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 06 Jun 2023 13:06:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271867

            Bug ID: 271867
           Summary: security/gvmd missing dates in reports
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: stewart+FreeBSD-BugZilla@arnos-vale.net
          Assignee: acm@FreeBSD.org
             Flags: maintainer-feedback?(acm@FreeBSD.org)

Created attachment 242636
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242636&action=edit
Wrap colon-adding code block in #ifndef __FreeBSD__

For reasons I've not gotten to the bottom of, the iso_time_internal() function
of utils.c tries to add an extra colon but results in an "HH:MM::SS"
time-format (i.e. doubled-up colon) which the moment.js front-end (correctly)
fails to parse, thus all report dates (and likely elsewhere too) are rendered
as an empty string and appear missing.

The attached patch wraps what I found to be the errant code block in #ifndef
__FreeBSD__, which fixes it for me.

I'd be interested to know if this is something specific to my setup though
(13.2-RELEASE on AMD64), since I've not seen any mention of this elsewhere.

-- 
You are receiving this mail because:
You are the assignee for the bug.