| Index: common/api/gitiles/gitiles.go
|
| diff --git a/common/api/gitiles/gitiles.go b/common/api/gitiles/gitiles.go
|
| index 19ac8399a407a18d9e88e16fd71367e91b62a399..f9381706b0a65ff6c749a4539dd8a9dd2453cff4 100644
|
| --- a/common/api/gitiles/gitiles.go
|
| +++ b/common/api/gitiles/gitiles.go
|
| @@ -22,6 +22,7 @@ import (
|
| "net/http"
|
| "net/url"
|
| "strings"
|
| + "time"
|
|
|
| "github.com/luci/luci-go/server/auth"
|
| "golang.org/x/net/context"
|
| @@ -34,6 +35,11 @@ type User struct {
|
| Time string `json:"time"`
|
| }
|
|
|
| +// GetTime returns the Time field as real data!
|
| +func (u *User) GetTime() (time.Time, error) {
|
| + return time.Parse(time.ANSIC, u.Time)
|
| +}
|
| +
|
| // Commit is the information of a commit returned from gitiles.
|
| type Commit struct {
|
| Commit string `json:"commit"`
|
|
|