Update description of expiry date

This commit is contained in:
Dennis Dawson
2022-06-09 09:48:56 -07:00
committed by GitHub
parent b4eeb97fd2
commit 93a8426f33

View File

@@ -181,7 +181,7 @@ async function createSellOffer() {
document.getElementById('standbyResultField').value = results
```
Compute the Expiration Date, if present. The expiration date represents the number of seconds after the Ripple Epoch that the offer should expire. Subtract the Ripple Epoch from the current system date divided by 1,000, and add the number of days (or fractions of a day) multiplied by 86400 to get the correct expiration date.
Compute the Expiration Date, if present. The expiration date represents the number of seconds after the Ripple Epoch that the offer should expire. Start with the current date, add the number of days till expiration, then set the expirationDate variable to the converted date in Ripple time (the number of seconds since the Ripple Epoch).
```
//------------------------------------- Prepare Expiration Date