File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ + (ComponentDescriptorProvider)componentDescriptorProvider
51
51
NSDate * iso8601StringToNSDate (const std::string &iso8601String) {
52
52
NSString *nsString = [NSString stringWithUTF8String: iso8601String.c_str ()];
53
53
NSISO8601DateFormatter *isoFormatter = [[NSISO8601DateFormatter alloc ] init ];
54
+ isoFormatter.formatOptions = NSISO8601DateFormatWithInternetDateTime | NSISO8601DateFormatWithFractionalSeconds ;
54
55
NSDate *date = [isoFormatter dateFromString: nsString];
55
56
return date;
56
57
}
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ export const DatePickerIOS = (props) => {
21
21
...props ,
22
22
onChange,
23
23
style : [ styles . datePickerIOS , props . style ] ,
24
- date : props . date ? props . date . getTime ( ) : undefined ,
24
+ date : props . date ? props . date . toISOString ( ) : undefined ,
25
25
locale : props . locale ? props . locale : undefined ,
26
- maximumDate : props . maximumDate ? props . maximumDate . getTime ( ) : undefined ,
27
- minimumDate : props . minimumDate ? props . minimumDate . getTime ( ) : undefined ,
26
+ maximumDate : props . maximumDate ? props . maximumDate . toISOString ( ) : undefined ,
27
+ minimumDate : props . minimumDate ? props . minimumDate . toISOString ( ) : undefined ,
28
28
theme : props . theme ? props . theme : 'auto' ,
29
29
}
30
30
You can’t perform that action at this time.
0 commit comments