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
5151NSDate * iso8601StringToNSDate (const std::string &iso8601String) {
5252 NSString *nsString = [NSString stringWithUTF8String: iso8601String.c_str ()];
5353 NSISO8601DateFormatter *isoFormatter = [[NSISO8601DateFormatter alloc ] init ];
54+ isoFormatter.formatOptions = NSISO8601DateFormatWithInternetDateTime | NSISO8601DateFormatWithFractionalSeconds ;
5455 NSDate *date = [isoFormatter dateFromString: nsString];
5556 return date;
5657}
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ export const DatePickerIOS = (props) => {
2121 ...props ,
2222 onChange,
2323 style : [ styles . datePickerIOS , props . style ] ,
24- date : props . date ? props . date . getTime ( ) : undefined ,
24+ date : props . date ? props . date . toISOString ( ) : undefined ,
2525 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 ,
2828 theme : props . theme ? props . theme : 'auto' ,
2929 }
3030
You can’t perform that action at this time.
0 commit comments