File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ - (void)testValidContextManagerMessage {
72
72
- (void )testMessageWithFutureStartTime {
73
73
#if TARGET_OS_IOS
74
74
NSString *messageIdentifier = @" fcm-cm-test1" ;
75
- NSString *startTimeString = @" 2020-01-12 12:00:00" ; // way into the future
75
+ // way into the future
76
+ NSString *startTimeString = [self .dateFormatter stringFromDate: [NSDate distantFuture ]];
76
77
NSDictionary *message = @{
77
78
kFIRMessagingContextManagerLocalTimeStart : startTimeString,
78
79
kFIRMessagingContextManagerBodyKey : @" Hello world!" ,
@@ -154,7 +155,8 @@ - (void)testTimedNotificationsUserInfo {
154
155
#if TARGET_OS_IOS
155
156
NSString *messageIdentifierKey = @" message.id" ;
156
157
NSString *messageIdentifier = @" fcm-cm-test1" ;
157
- NSString *startTimeString = @" 2020-01-12 12:00:00" ; // way into the future
158
+ // way into the future
159
+ NSString *startTimeString = [self .dateFormatter stringFromDate: [NSDate distantFuture ]];
158
160
159
161
NSString *customDataKey = @" hello" ;
160
162
NSString *customData = @" world" ;
You can’t perform that action at this time.
0 commit comments