diff --git a/src/parser.rs b/src/parser.rs index bb3ef2d..9223fe7 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -319,7 +319,7 @@ impl AppleCrashReport { "Date/Time" => { let timestamp = DateTime::::parse_from_str( &caps[2], - "%Y-%m-%d %H:%M:%S %z", + "%Y-%m-%d %H:%M:%S%.3f %z", ) .map_err(ParseError::InvalidTimestamp)?; rv.timestamp = Some(timestamp.with_timezone(&Utc)); diff --git a/tests/fixtures/bruno.txt b/tests/fixtures/bruno.txt index 2ca240f..881ba71 100644 --- a/tests/fixtures/bruno.txt +++ b/tests/fixtures/bruno.txt @@ -8,7 +8,7 @@ Version: 4.21.1 Code Type: X86-64 Parent Process: launchd [1] -Date/Time: 2019-01-09 17:44:22 +0000 +Date/Time: 2019-01-09 12:44:22.075 +0000 OS Version: Mac OS X 10.14.0 (18A391) Report Version: 104 diff --git a/tests/snapshots/test_snapshots__bruno.snap b/tests/snapshots/test_snapshots__bruno.snap index 31b34c6..49c2d5a 100644 --- a/tests/snapshots/test_snapshots__bruno.snap +++ b/tests/snapshots/test_snapshots__bruno.snap @@ -1,11 +1,9 @@ --- -created: "2019-01-23T13:22:50.862649+00:00" -creator: insta@0.5.2 -expression: "&report" source: tests/test_snapshots.rs +expression: "&report" --- incident_identifier: 5c32df84-31a0-43e7-87d0-239f7f594940 -timestamp: "2019-01-09T17:44:22Z" +timestamp: "2019-01-09T12:44:22.075Z" code_type: X86-64 path: /Users/bruno/Documents/Unreal Projects/YetAnotherMac/MacNoEditor/YetAnotherMac.app/Contents/MacOS/YetAnotherMac report_version: 104