File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11#import " SentryBreadcrumb.h"
22#import " SentryBreadcrumb+Private.h"
33#import " SentryDateUtils.h"
4+ #import " SentryInternalDefines.h"
45#import " SentryLevelMapper.h"
56#import " SentryNSDictionarySanitize.h"
67#import " SentrySwift.h"
@@ -59,7 +60,11 @@ - (instancetype)init
5960 NSMutableDictionary *serializedData = [NSMutableDictionary new ];
6061
6162 [serializedData setValue: nameForSentryLevel (self .level) forKey: @" level" ];
62- [serializedData setValue: sentry_toIso8601String (self .timestamp) forKey: @" timestamp" ];
63+ if (self.timestamp != nil ) {
64+ [serializedData
65+ setValue: sentry_toIso8601String (SENTRY_UNWRAP_NULLABLE (NSDate , self .timestamp))
66+ forKey: @" timestamp" ];
67+ }
6368 [serializedData setValue: self .category forKey: @" category" ];
6469 [serializedData setValue: self .type forKey: @" type" ];
6570 [serializedData setValue: self .origin forKey: @" origin" ];
You can’t perform that action at this time.
0 commit comments