Skip to content

Commit 283dbd7

Browse files
evgeny-polMax
authored andcommitted
fix date serialization (#235)
1 parent 3e41cca commit 283dbd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/AppCenter/Plugins/iOS/Crashes/ErrorReport.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{
4141
MSErrorReport *report = (__bridge MSErrorReport*)errorReport;
4242
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
43-
[dateFormatter setDateFormat:@"yyyy-MM-dd hh:mm:ss"];
43+
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss ZZZZZ"];
4444
NSString *dateStr = [dateFormatter stringFromDate:report.appStartTime];
4545
return appcenter_unity_ns_string_to_cstr(dateStr);
4646
}
@@ -49,7 +49,7 @@
4949
{
5050
MSErrorReport *report = (__bridge MSErrorReport*)errorReport;
5151
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
52-
[dateFormatter setDateFormat:@"yyyy-MM-dd hh:mm:ss"];
52+
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss ZZZZZ"];
5353
NSString *dateStr = [dateFormatter stringFromDate:report.appErrorTime];
5454
return appcenter_unity_ns_string_to_cstr(dateStr);
5555
}

0 commit comments

Comments
 (0)