Bug 271867

Summary: security/gvmd missing dates in reports
Product: Ports & Packages Reporter: Stewart Morgan <stewart+FreeBSD-BugZilla>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed Overcome By Events    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (acm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Wrap colon-adding code block in #ifndef __FreeBSD__ none

Description Stewart Morgan 2023-06-06 13:06:57 UTC
Created attachment 242636 [details]
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.
Comment 1 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2023-10-20 07:22:53 UTC
Could you test with latest version of gvmd?