From e44658a6ebcaf22c285a47d9919404760e1438a1 Mon Sep 17 00:00:00 2001 From: adderou Date: Fri, 6 Mar 2020 16:58:38 -0300 Subject: [PATCH] fixing model date --- signer/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signer/context.go b/signer/context.go index 134a85a..723f52a 100644 --- a/signer/context.go +++ b/signer/context.go @@ -54,7 +54,7 @@ func NewContext(config *ContextConfig, log *log.Logger) (ctx *Context, err error } if len(config.ExpDateStr) > 0 { - parsedDate, err := time.Parse("20160102", config.ExpDateStr) + parsedDate, err := time.Parse("20060102", config.ExpDateStr) if err != nil { return nil, fmt.Errorf("cannot parse expiration date: %s", err) }