mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
pad month with 0
This commit is contained in:
parent
5705f4f736
commit
315c59b2ae
@ -59,7 +59,10 @@ namespace Bit.Core.Models.Api
|
||||
{
|
||||
case SourceType.Card:
|
||||
Description = $"{source.Card.Brand}, *{source.Card.Last4}, " +
|
||||
$"{source.Card.ExpirationMonth}/{source.Card.ExpirationYear}";
|
||||
string.Format("{0}/{1}",
|
||||
string.Concat(source.Card.ExpirationMonth.Length == 1 ?
|
||||
"0" : string.Empty, source.Card.ExpirationMonth),
|
||||
source.Card.ExpirationYear);
|
||||
CardBrand = source.Card.Brand;
|
||||
break;
|
||||
case SourceType.BankAccount:
|
||||
|
Loading…
Reference in New Issue
Block a user