mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 13:02:33 +02:00
fix cert expiry date format
This commit is contained in:
parent
0995c8b839
commit
adb067a57f
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
E "github.com/yusing/go-proxy/internal/error"
|
E "github.com/yusing/go-proxy/internal/error"
|
||||||
|
"github.com/yusing/go-proxy/internal/utils/strutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (p *Provider) Setup() (err E.Error) {
|
func (p *Provider) Setup() (err E.Error) {
|
||||||
|
@ -20,7 +21,7 @@ func (p *Provider) Setup() (err E.Error) {
|
||||||
p.ScheduleRenewal()
|
p.ScheduleRenewal()
|
||||||
|
|
||||||
for _, expiry := range p.GetExpiries() {
|
for _, expiry := range p.GetExpiries() {
|
||||||
logger.Info().Msg("certificate expire on " + expiry.String())
|
logger.Info().Msg("certificate expire on " + strutils.FormatTime(expiry))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue