aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-02-17 21:57:06 -0800
committerAdam Mathes <adam@trenchant.org>2017-02-17 21:57:06 -0800
commit38a504c2afecb5ec76358a16a03a6cf0a61d0b84 (patch)
treed79fdc7c1ef3f0a4fbd1537efc4b113d6ad4fc03
parentc010e6df0f86b85f657a26f4cf301df945ff25b6 (diff)
downloadneko-38a504c2afecb5ec76358a16a03a6cf0a61d0b84.tar.gz
neko-38a504c2afecb5ec76358a16a03a6cf0a61d0b84.tar.bz2
neko-38a504c2afecb5ec76358a16a03a6cf0a61d0b84.zip
crawler fix
-rw-r--r--crawler/crawler.go3
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")
}