diff options
author | Adam Mathes <adam@trenchant.org> | 2017-02-17 21:57:06 -0800 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-02-17 21:57:06 -0800 |
commit | 38a504c2afecb5ec76358a16a03a6cf0a61d0b84 (patch) | |
tree | d79fdc7c1ef3f0a4fbd1537efc4b113d6ad4fc03 | |
parent | c010e6df0f86b85f657a26f4cf301df945ff25b6 (diff) | |
download | neko-38a504c2afecb5ec76358a16a03a6cf0a61d0b84.tar.gz neko-38a504c2afecb5ec76358a16a03a6cf0a61d0b84.tar.bz2 neko-38a504c2afecb5ec76358a16a03a6cf0a61d0b84.zip |
crawler fix
-rw-r--r-- | crawler/crawler.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawler/crawler.go b/crawler/crawler.go index 0782c8f..63e9486 100644 --- a/crawler/crawler.go +++ b/crawler/crawler.go @@ -74,8 +74,7 @@ func CrawlFeed(f *feed.Feed, ch chan<- string) { if(i.PublishedParsed != nil) { item.PublishDate = i.PublishedParsed.Format("2006-01-02 15:04:05") - } - else { + } else { item.PublishDate = time.Now().Format("2006-01-02 15:04:05") } |