mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
pad month with 0
This commit is contained in:
@@ -59,7 +59,10 @@ namespace Bit.Core.Models.Api
|
|||||||
{
|
{
|
||||||
case SourceType.Card:
|
case SourceType.Card:
|
||||||
Description = $"{source.Card.Brand}, *{source.Card.Last4}, " +
|
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;
|
CardBrand = source.Card.Brand;
|
||||||
break;
|
break;
|
||||||
case SourceType.BankAccount:
|
case SourceType.BankAccount:
|
||||||
|
|||||||
Reference in New Issue
Block a user