Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't put zero dates

Not sure why they are even being created. I think it had something to do
with the quota outage.
  • Loading branch information...
commit efea4bd9c98df9664b90121d42022bc3a441d779 1 parent ca21c2d
@mjibson authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 tasks.go
View
8 tasks.go
@@ -376,8 +376,12 @@ func updateFeed(c mpg.Context, url string, feed *Feed, stories []*Story, updateA
if goon.NotFound(err, i) {
updateStories = append(updateStories, stories[i])
} else if (!stories[i].Updated.IsZero() && !stories[i].Updated.Equal(s.Updated)) || updateAll {
- stories[i].Created = s.Created
- stories[i].Published = s.Published
+ if !s.Created.IsZero() {
+ stories[i].Created = s.Created
+ }
+ if !s.Published.IsZero() {
+ stories[i].Published = s.Published
+ }
updateStories = append(updateStories, stories[i])
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.