Correct the expiration date format

master
meskio 8 months ago
parent 19d91e33c7
commit 109afb27b8
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 3
      server/openpgp.go

@ -62,6 +62,7 @@ func (s *Server) openPGPkeyHandler(w http.ResponseWriter, r *http.Request) {
case ErrExpiredKey:
data.Error = "expired"
default:
log.Println("Error setting the openpgp key into ldap:", err)
s.errorHandler(w, r)
return
}
@ -104,7 +105,7 @@ func (s *Server) openPGPkeyHandler(w http.ResponseWriter, r *http.Request) {
data.Fingerprint = key.Fingerprint
if !key.Expiry.IsZero() {
data.Expiry = key.Expiry.Format("01/02/2006")
data.Expiry = key.Expiry.Format("02/01/2006")
}
}

Loading…
Cancel
Save