aboutsummaryrefslogtreecommitdiffstats
path: root/skate/reduce.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/reduce.go')
-rw-r--r--skate/reduce.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/skate/reduce.go b/skate/reduce.go
index 8658ffe..8913cae 100644
--- a/skate/reduce.go
+++ b/skate/reduce.go
@@ -382,7 +382,10 @@ func ZippyWayback(refs, cdx io.Reader, w io.Writer) error {
bref.SourceReleaseIdent = ref.ReleaseIdent
bref.SourceWorkIdent = ref.WorkIdent
bref.SourceReleaseStage = ref.ReleaseStage
- bref.SourceYear = fmt.Sprintf("%d", ref.ReleaseYear)
+ // TODO: track down the 0 year docs.
+ if ref.ReleaseYear > 1800 {
+ bref.SourceYear = fmt.Sprintf("%d", ref.ReleaseYear)
+ }
bref.RefIndex = ref.Index + 1 // we want 1-index (also helps with omitempty)
bref.RefKey = ref.Key
if cdx.NumRows == 0 {