Update date to 1 past threshold for upgrade

This commit is contained in:
onyinyang 2023-02-13 16:29:34 -05:00
parent 1e8b741719
commit ffe9c2ea93
No known key found for this signature in database
GPG Key ID: 156A6435430C2036
1 changed files with 4 additions and 4 deletions

View File

@ -130,12 +130,12 @@ pub fn trust_promotion(open_lox_cred: String, lox_pub: String) -> Result<String,
// To test creation of the credential we need to advance the day to 30
// in production this should just use the today() function
log(&format!(
"TEST: Add 30 days to today's date: {}",
add_today(30)
"TEST ONLY: Add 31 days to today's date: {}",
add_today(31)
));
let tp_result =
match trust_promotion::request(&lox_cred.lox_credential, &pubkeys.lox_pub, add_today(30)) {
//CHANGE add_today() to today()
//CHANGE add_today(31) to today() for production
match trust_promotion::request(&lox_cred.lox_credential, &pubkeys.lox_pub, add_today(31)) {
Ok(tp_result) => tp_result,
Err(e) => {
log(&format!("Error: {:?}", e.to_string()));