1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-04 20:50:55 +00:00
Beego/utils.go

15 lines
225 B
Go
Raw Normal View History

2012-12-15 15:53:19 +00:00
package beego
import (
"strings"
"time"
)
func webTime(t time.Time) string {
ftime := t.Format(time.RFC1123)
if strings.HasSuffix(ftime, "UTC") {
ftime = ftime[0:len(ftime)-3] + "GMT"
}
return ftime
}