iOS Question Error parsing 31/03/2024 ???

ilan

Expert
Licensed User
Longtime User
hi

just noticed that my app is crashing. opened b4i and checked why. it seems like b4i cannot parse the date 31/03/2024.
why is that?

code:

B4X:
DateTime.DateFormat = "dd/MM/yyyy"
Log(DateTime.DateParse("31/03/2024"))

log:

Application_Start
*** mainpage: B4XPage_Created
Application_Active
*** mainpage: B4XPage_Appear [mainpage]
*** mainpage: B4XPage_Resize [mainpage]
*** shoppinglist: B4XPage_Created [mainpage]
Error occurred on line: 555 (ShabatModule)
Error parsing: 31/03/2024
Stack Trace: (
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 969524
libobjc.A.dylib objc_exception_throw + 60
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 1516196
result -[B4IDateTime DateParse:] + 136
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 203908
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 202512
result +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1348
result -[B4IShell runMethod:] + 320
result -[B4IShell raiseEventImpl:method:args::] + 928
result -[B4IShellBI raiseEvent:event:params:] + 1008
result -[b4i_shabatmodule _issummertime:] + 248
result -[b4i_shabatmodule _sunsettime:] + 668
result -[b4i_shabatmodule _allowads:] + 424
result -[ResumableSub_shoppinglist_B4XPage_Created resume::] + 972
result -[b4i_shoppinglist _b4xpage_created::] + 412
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 203908
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 202512
result +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1348
result -[B4ICommon CallSubDebug4::::] + 848
result -[B4ICommon CallSubDebug2::::] + 272
result -[b4i_b4xpagesmanager _createpageifneeded::] + 888
result -[b4i_b4xpagesmanager _addpageandcreate:::] + 580
result -[b4i_b4xpages _addpageandcreate::] + 468
result -[ResumableSub_b4xmainpage_B4XPage_Created resume::] + 1792
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 203908
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 202512
result +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1348
result -[B4IShell runMethod:] + 320
result -[B4IShell raiseEventImpl:method:args::] + 928
result -[B4IShellBI raiseEvent:event:params:] + 1008
result -[B4IDelegatableResumableSub resume::] + 336
result -[B4I checkAndRunWaitForEvent:event:params:] + 468
result -[B4IShellBI raiseEvent:event:params:] + 904
result __33-[B4I raiseUIEvent:event:params:]_block_invoke + 52
libdispatch.dylib B7D9D0A6-2414-37F2-9D03-1A25A474E2CF + 8508
libdispatch.dylib B7D9D0A6-2414-37F2-9D03-1A25A474E2CF + 15828
libdispatch.dylib B7D9D0A6-2414-37F2-9D03-1A25A474E2CF + 75172
libdispatch.dylib _dispatch_main_queue_callback_4CF + 44
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 226588
CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 213528
CoreFoundation CFRunLoopRunSpecific + 608
GraphicsServices GSEventRunModal + 164
UIKitCore 7BF01CFC-23F1-326A-AFD8-AD967FFECE28 + 2272988
UIKitCore UIApplicationMain + 340
result main + 100
dyld 7BE2B757-3B3D-3E91-8CB7-74F3887660C7 + 23940
)
 

ilan

Expert
Licensed User
Longtime User
Ugh, good point, I was looking at b4x.com/android/forum/ url thinking was Android issue, but as you point out, is iOS issue.
yes correct it is happening on my iphone (ios 17.4.1)
have not tested on android but i think there is no issue on b4a only on b4i.
 
Upvote 0
Top