Skip to content

Commit 08445d0

Browse files
committed
fix : del clock-util and add time
1 parent a8829e3 commit 08445d0

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

server/utils/clock/clock.go

-19
This file was deleted.

server/utils/time.go

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package utils
2+
3+
import (
4+
"fmt"
5+
"time"
6+
)
7+
8+
func JSTNow() (time.Time, error) {
9+
jst, err := time.LoadLocation("Asia/Tokyo")
10+
if err != nil {
11+
return time.Time{}, fmt.Errorf("can't get time")
12+
}
13+
now := time.Now().In(jst)
14+
return now, nil
15+
}

0 commit comments

Comments
 (0)