| Index: milo/appengine/common/funcs.go
|
| diff --git a/milo/appengine/common/funcs.go b/milo/appengine/common/funcs.go
|
| index dcf5e490dcb98d571b5832e2289f0e0ceb724cff..805ebeadc536ed3b63c0c54e330fbee212f13998 100644
|
| --- a/milo/appengine/common/funcs.go
|
| +++ b/milo/appengine/common/funcs.go
|
| @@ -30,6 +30,7 @@ var funcMap = template.FuncMap{
|
| "sub": sub,
|
| "consoleHeader": consoleHeader,
|
| "pagedURL": pagedURL,
|
| + "formatTime": formatTime,
|
| }
|
|
|
| // localTime returns a <span> element with t in human format
|
| @@ -158,6 +159,11 @@ func parseRFC3339(s string) time.Time {
|
| return time.Time{}
|
| }
|
|
|
| +// formatTime takes a time object and returns a formatted RFC3339 string.
|
| +func formatTime(t time.Time) string {
|
| + return t.Format(time.RFC3339)
|
| +}
|
| +
|
| // linkifyTemplate is the template used in "linkify". Because the template,
|
| // itself recursively invokes "linkify", we will initialize it in explicitly
|
| // in "init()".
|
|
|