What is the preferred way to put current time on contracts? Most importantly on DABL, right now. But also in general, in some portable way.
getTime
is not supported on DABL.
The application could input time to the ledger, but than the DAML model could not prevent anyone to falsify time.
We used an automation to periodically update some CurrentTime
contracts on the ledger in the Market Data Ref App, but this is a bit heavyweight and should be ported to DAZL from Java in order to use it.