Skip to content

Commit 02a91eb

Browse files
committed
Change time format to RFC Mail
1 parent 758bf19 commit 02a91eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/web/web_main_get.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ func (data Data) getPaste(rw http.ResponseWriter, req *http.Request) {
9393
DeleteTime: paste.DeleteTime,
9494
OneUse: paste.OneUse,
9595

96-
CreateTimeStr: createTime.Format("15:04 02.01.2006 UTC"),
97-
DeleteTimeStr: deleteTime.Format("15:04 02.01.2006 UTC"),
96+
CreateTimeStr: createTime.Format("Mon, 02 Jan 2006 15:04:05 -0700"),
97+
DeleteTimeStr: deleteTime.Format("Mon, 02 Jan 2006 15:04:05 -0700"),
9898
}
9999

100100
// Get body line end

0 commit comments

Comments
 (0)