Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: local timezone (#5)

STEVENb40060fd3641
diff --git a/utils/common.go b/utils/common.go
index b2d5ec8d3..61107a280 100644
--- a/utils/common.go
+++ b/utils/common.go
@@ -11,5 +11,5 @@ func GenUUID() string {
}
func GetNowDateTimeStr() string {
- return time.Now().Format("2006/01/02 15:04:05")
+ return time.Now().Local().Format("2006/01/02 15:04:05")
}