]> Cypherpunks repositories - gostls13.git/commitdiff
gobuilder: send commit time in RFC3339 format
authorAndrew Gerrand <adg@golang.org>
Tue, 28 Feb 2012 00:21:56 +0000 (11:21 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 28 Feb 2012 00:21:56 +0000 (11:21 +1100)
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5701063

misc/dashboard/builder/http.go

index 3f3bc412caf0eeb443fa1e1fbde80b3c875b8c87..f5a1fcf9bd820a831a09cc35d4cd6ef5c1c72572 100644 (file)
@@ -169,7 +169,7 @@ func postCommit(key, pkg string, l *HgLog) error {
                "PackagePath": pkg,
                "Hash":        l.Hash,
                "ParentHash":  l.Parent,
-               "Time":        t.Unix() * 1e6, // in microseconds, yuck!
+               "Time":        t.Format(time.RFC3339),
                "User":        l.Author,
                "Desc":        l.Desc,
        }, nil)