Skip to content

Commit

Permalink
Add timezone to device payload (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench authored and kattrali committed Mar 14, 2018
1 parent 664095e commit e3c47af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/BugsnagKSCrashSysInfoParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
BSGDictSetSafeObject(device, [[NSLocale currentLocale] localeIdentifier],
@"locale");

BSGDictSetSafeObject(device, report[@"time_zone"], @"timezone");
BSGDictSetSafeObject(device, [report valueForKeyPath:@"system.time_zone"], @"timezone");
BSGDictSetSafeObject(device, [report valueForKeyPath:@"system.memory.usable"],
@"totalMemory");

Expand Down
1 change: 1 addition & 0 deletions Tests/BugsnagSinkTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ - (void)testEventDevice {
XCTAssertEqualObjects(device[@"osVersion"], @"8.1");
XCTAssertEqualObjects(device[@"totalMemory"], @15065522176);
XCTAssertNotNil(device[@"freeDisk"]);
XCTAssertEqualObjects(device[@"timezone"], @"PST");
XCTAssertEqualObjects(device[@"jailbroken"], @YES);
XCTAssertEqualObjects(device[@"freeMemory"], @742920192);
XCTAssertEqualObjects(device[@"orientation"], @"unknown");
Expand Down
4 changes: 2 additions & 2 deletions examples/swift-ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Bugsnag (5.15.3)
- Bugsnag (5.15.4)

DEPENDENCIES:
- Bugsnag (from `../..`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../..

SPEC CHECKSUMS:
Bugsnag: 49464c6c2fb7a2eb5a66064586c64a6e23454c04
Bugsnag: 904211a0230f254808b47f3adb4b684900772962

PODFILE CHECKSUM: 2107babfbfdb18f0288407b9d9ebd48cbee8661c

Expand Down

0 comments on commit e3c47af

Please sign in to comment.