Skip to content

Commit 1ab2b98

Browse files
committed
fix date format
1 parent 16e1206 commit 1ab2b98

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

allowiprequest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (a *AllowIpR) serveAdminPage(rw http.ResponseWriter) {
203203
if now.After(expiry) {
204204
status = "Expired"
205205
}
206-
rows.WriteString(fmt.Sprintf("<tr><td>%s</td><td>%s</td><td>%s</td></tr>", ip, expiry.Format(time.RFC3339), status))
206+
rows.WriteString(fmt.Sprintf("<tr><td>%s</td><td>%s</td><td>%s</td></tr>", ip, expiry.Format("02 Jan 2006 15:04:05"), status))
207207
}
208208

209209
html := fmt.Sprintf(`

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ experimental:
3434
plugins:
3535
allowiprequest:
3636
moduleName: github.com/CAJIO/allowiprequest
37-
version: v1.0.0
37+
version: v1.1.0
3838
```
3939
4040
### Middleware Configuration

0 commit comments

Comments
 (0)