SUSE / linux-security-sensor

Linux security sensor
Other
18 stars 9 forks source link

Fix handling of nanosecond-resolution timestamps in GUI #59

Closed jeffmahoney closed 1 year ago

jeffmahoney commented 1 year ago

Javascript's Date() API only supports parsing a very small subset of RFC-8601 timestamps. The golang timestamps don't fall under the definition. As a result, the log for artifacts show "Invalid Date" under Timestamp and then crashes the GUI with an uncaught exception if the tooltip that shows relative time is used.

This PR fixes these issues by reformatting the timestamp to comply with the Javascript API.