Skip to content

Commit

Permalink
Merge pull request #332 from GoSecure/fix-session-dateformat-string
Browse files Browse the repository at this point in the history
Fixed wrong date format string for sessions converted from a pcap
  • Loading branch information
obilodeau authored Aug 3, 2021
2 parents d72b491 + 8a5220d commit 8707102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrdp/convert/PCAPConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def listSessions(self) -> List[Tuple[int, PCAPStream]]:
return streams

def processStream(self, startTimeStamp: int, stream: PCAPStream):
startTimeStamp = time.strftime("%Y%M%d%H%m%S", time.gmtime(startTimeStamp))
startTimeStamp = time.strftime("%Y%m%d%H%M%S", time.gmtime(startTimeStamp))
sessionID = PCAPConverter.SESSIONID_FORMAT.format(**{
"timestamp": startTimeStamp,
"src": stream.client,
Expand Down

0 comments on commit 8707102

Please sign in to comment.