mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Use system timezone instead of setting.DefaultUILocation
This commit is contained in:
		@@ -7,8 +7,6 @@ package activitypub
 | 
				
			|||||||
import (
 | 
					import (
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"code.gitea.io/gitea/modules/setting"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	"github.com/go-fed/activity/pub"
 | 
						"github.com/go-fed/activity/pub"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -25,5 +23,5 @@ func NewClock() (c *Clock, err error) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// Now function
 | 
					// Now function
 | 
				
			||||||
func (c *Clock) Now() time.Time {
 | 
					func (c *Clock) Now() time.Time {
 | 
				
			||||||
	return time.Now().In(setting.DefaultUILocation)
 | 
						return time.Now().Local()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user