From e88babc7417a74492c2bd0d8261f8a1c3c670428 Mon Sep 17 00:00:00 2001 From: Hongwei Date: Tue, 25 Feb 2025 15:34:22 +0100 Subject: [PATCH] refactor/tweaked VrpConsentCreation the Date format --- obp-api/src/main/scala/code/snippet/VrpConsentCreation.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obp-api/src/main/scala/code/snippet/VrpConsentCreation.scala b/obp-api/src/main/scala/code/snippet/VrpConsentCreation.scala index 1ba2aa3ba..ed671303b 100644 --- a/obp-api/src/main/scala/code/snippet/VrpConsentCreation.scala +++ b/obp-api/src/main/scala/code/snippet/VrpConsentCreation.scala @@ -75,7 +75,7 @@ class VrpConsentCreation extends MdcLoggable with RestHelper with APIMethods510 | 3) The maximum amount per month that can be transferred is $currency ${(jsonAst \ "to_account" \ "limit" \ "max_monthly_amount").extract[String]} over ${(jsonAst \ "to_account" \ "limit" \ "max_number_of_monthly_transactions").extract[String]} transactions. | 4) The maximum amount per year that can be transferred is $currency ${(jsonAst \ "to_account" \ "limit" \ "max_yearly_amount").extract[String]} over ${(jsonAst \ "to_account" \ "limit" \ "max_number_of_yearly_transactions").extract[String]} transactions. | - |This consent will start on date ${(jsonAst \ "valid_from").extract[String]} and be valid for ${DateTimeUtil.formatDuration(ttl)}. + |This consent will start on date ${(jsonAst \ "valid_from").extract[String].replace("T"," ").replace("Z","")} and be valid for ${DateTimeUtil.formatDuration(ttl)}. | |I understand that I can revoke this consent at any time. |""".stripMargin