]> source.dussan.org Git - gitea.git/commitdiff
print time to debug
authorUnknwon <u@gogs.io>
Wed, 19 Aug 2015 16:25:32 +0000 (00:25 +0800)
committerUnknwon <u@gogs.io>
Wed, 19 Aug 2015 16:25:32 +0000 (00:25 +0800)
models/issue.go
modules/base/tool.go

index cd22f1a5a10d9b245e53d8c05be44460f8aa90e5..75345217c49f84ec15a6bacf655dd9de4e3a234c 100644 (file)
@@ -1359,7 +1359,7 @@ func (c *Comment) AfterSet(colName string, _ xorm.Cell) {
                        }
                }
        case "created":
-               c.Created = c.Created.UTC()
+               fmt.Println(1, c.Created)
        }
 }
 
index 7cf0e8544646cb568c29737269a2cf1c3d1a0ef0..abf12791d3fb79f42f7ee64caa11db9186bd7590 100644 (file)
@@ -252,7 +252,7 @@ func computeTimeDiff(diff int64) (int64, string) {
 
 // TimeSincePro calculates the time interval and generate full user-friendly string.
 func TimeSincePro(then time.Time) string {
-       now := time.Now().UTC()
+       now := time.Now()
        diff := now.Unix() - then.Unix()
 
        if then.After(now) {
@@ -272,7 +272,8 @@ func TimeSincePro(then time.Time) string {
 }
 
 func timeSince(then time.Time, lang string) string {
-       now := time.Now().UTC()
+       now := time.Now()
+       fmt.Println(2, now)
 
        lbl := i18n.Tr(lang, "tool.ago")
        diff := now.Unix() - then.Unix()