instacart / truetime-android

Android NTP time library. Get the true current time impervious to device clock time changes
https://tech.instacart.com/truetime/
Apache License 2.0
1.41k stars 194 forks source link

Error : You need to call init() on TrueTime at least once. #142

Open glomowa opened 2 years ago

glomowa commented 2 years ago

hi i sometimes i got this error

java.lang.IllegalStateException: You need to call init() on TrueTime at least once. com.instacart.library.truetime.TrueTime.now(TrueTime.java:29)

but i already put this on my class that extend Application() class doAsync { TrueTime.build().initialize() }

Tooto commented 2 years ago

same problem

metatron1973 commented 2 years ago

Complete fraud in instacarts system red alert needs forensic audit image

metatron1973 commented 2 years ago

Internal forensic audit being applied to fraudulent systems inside Instacart image

ashwin-nath-m commented 1 year ago

@Tooto did u get a solution?

RubyV commented 11 months ago

does anyone has a solution for this?

dunghn2201 commented 11 months ago

Has this problem already been resolved?

akhil-handa commented 11 months ago

You might be calling TrueTime.now before the async call is complete

if(TrueTime.isInitialized()) {
return TrueTime.now
} else {
return System.currentTimeMillis()
}