better format

This commit is contained in:
Tony Li 2018-01-18 13:20:42 -05:00 committed by GitHub
parent e15e88584e
commit 2700a5eeaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -693,8 +693,8 @@ func DeleteBuildLogs(c *gin.Context) {
}
for _, proc := range procs {
t := time.Now()
buf := bytes.NewBufferString(fmt.Sprintf(deleteStr, proc.Name, user.Login, t.Format(time.RFC3339))
t := time.Now().UTC()
buf := bytes.NewBufferString(fmt.Sprintf(deleteStr, proc.Name, user.Login, t.Format(time.UnixDate)))
lerr := store.FromContext(c).LogSave(proc, buf)
if lerr != nil {
err = lerr