aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-03-30 17:51:06 -0500
committerAnthony Wang2022-03-30 17:51:44 -0500
commit7ea5e108a58540a07390a26d40d9e36db8781ec2 (patch)
tree213701a563c50ffcfdf4687515dcc0e8fcf8d9c1
parentfdae736f2217df294f190f272bc0cd6eeb3c405b (diff)
Use system timezone instead of setting.DefaultUILocation
-rw-r--r--modules/activitypub/clock.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/activitypub/clock.go b/modules/activitypub/clock.go
index fff6c17c3..f8970102e 100644
--- a/modules/activitypub/clock.go
+++ b/modules/activitypub/clock.go
@@ -7,8 +7,6 @@ package activitypub
import (
"time"
- "code.gitea.io/gitea/modules/setting"
-
"github.com/go-fed/activity/pub"
)
@@ -25,5 +23,5 @@ func NewClock() (c *Clock, err error) {
// Now function
func (c *Clock) Now() time.Time {
- return time.Now().In(setting.DefaultUILocation)
+ return time.Now().Local()
}