From fa5a1ac184e1fa9448453655b7e1f8e1297ef3b6 Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 12 Oct 2010 00:12:02 +0000 Subject: [PATCH] also fix this in the future --- FS/FS/cust_main.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 7cfdd896b..a4bebb5f2 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1723,6 +1723,7 @@ sub check { } else { return "Illegal expiration date: ". $self->paydate; } + $m = sprintf('%02d',$m); $self->paydate("$y-$m-01"); my($nowm,$nowy)=(localtime(time))[4,5]; $nowm++; $nowy+=1900; return gettext('expired_card') -- 2.11.0