Android Question Does not return the Current Date in Release Mode (SPSntp Lib)

Pravee7094

Active Member
Hello All,
The below code is return the Current date in Debug Mode. But Does not return the current date in Release mode.
B4X:
Dim is_DateAndTime As SntpTime
Dim ll_date As Long = is_DateAndTime.getGmtNtpTime
Log("Time Ticks : " & ll_date)

DateTime.DateFormat = "dd-MM-yyyy"
Dim ls_currentdate As String = DateTime.Date(ll_date)
Log("Current Date : " & ls_currentdate)

In "Logs" Tab:
B4X:
Time Ticks : -1
Current Date : 01-01-1970

Any Suggestion?

Thanks
 
Top