Closed faase closed 1 year ago
Can you provide some context on how you are using this method?
log2timeline.py syslog
this is likely a Plaso related issue not being to determine the year correctly and not an issue in dfdatetime
also see https://github.com/log2timeline/plaso/issues/4384
@faase please open an issue with Plaso with the necessary details, closing this PR
I tracked the issue from plaso/plaso/engine/timeliner.py
line 186. My thought was that calling NewFromDeltaAndYear
with year
as single parameter should return a valid date, so i assumed this to be the proper location for fixing it.
Am I correct in the assumption that I should put the test in plaso/plaso/engine/timeliner.py
in the calling _GetEvent
method to prevent NewFromDeltaAndYear
from creating an incorrect date?
so i assumed this to be the proper location for fixing it.
unfortunately it was not,
Plaso does an estimate of the base year, this could be incorrect. To do it properly the estimate base year should be updated with similar logic.
Running
returns
.
This patch adds a leap year test to NewFromDeltaAndYear. If it fails, it chooses the most recent leap year.