1
1
mirror of https://github.com/go-gitea/gitea synced 2024-09-09 05:16:07 +00:00

Use system timezone instead of setting.DefaultUILocation

This commit is contained in:
Anthony Wang 2022-03-30 17:51:06 -05:00
parent fdae736f22
commit 7ea5e108a5
No known key found for this signature in database
GPG Key ID: BC96B00AEC5F2D76

View File

@ -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()
}