aboutsummaryrefslogtreecommitdiffstats
path: root/crawler
diff options
context:
space:
mode:
Diffstat (limited to 'crawler')
-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")
}