mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
pad month with 0
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user