15 lines
		
	
	
		
			225 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			225 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 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
 | |
| }
 |