Yes, in no_std or WASM you have to define a time provider. You can find an example here: https://github.com/shadowylab/universal-time#with-no_std-or-wasm-unknown
The example just set a fake time, in your app you can get the real one using instant or webtime.