Update date to 1 past threshold for upgrade
This commit is contained in:
parent
1e8b741719
commit
ffe9c2ea93
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue