Archived
1
0

try fixing issues #161 and #162

This commit is contained in:
Jeff Becker
2018-11-27 10:24:27 -05:00
parent 795fcbe37c
commit 4d4aea61fe
2 changed files with 16 additions and 4 deletions

View File

@@ -15,9 +15,9 @@ import (
"log"
"mime"
"mime/multipart"
"net/mail"
"net/textproto"
"strings"
"time"
)
type ArticleHeaders map[string][]string
@@ -342,7 +342,7 @@ func (self *nntpArticle) Subject() string {
func (self *nntpArticle) Posted() int64 {
posted := self.headers.Get("Date", "")
t, err := time.Parse(time.RFC1123Z, posted)
t, err := mail.ParseDate(posted)
if err == nil {
return t.Unix()
}