Skip to content

Time formatting is incorrect in FalconLog, identified the issue and corrected it. #435

@CWitkowski-CRWD

Description

@CWitkowski-CRWD

$Content = @(Get-Date -Format 'yyyy-MM-dd hh:MM:ss')

The Write-FalconLog function is recording the time incorrectly in the FalconLog.

Currently line 158 is the following:
$Content = @(Get-Date -Format 'yyyy-MM-dd hh:MM:ss')

This produces the incorrect time. It's being recorded as Hours/Months/Seconds.

The correct syntax should be the following:

$Content = @(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')

In my opinion HH should be used to record in 24 format, instead of hh which is 12 hour format.

mm will produce the proper time in minutes, instead of the current month.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions