From 5c5ed33f4381bd42b4798c38b157983d671a7b05 Mon Sep 17 00:00:00 2001 From: Stanly Date: Wed, 29 Jul 2020 20:15:04 +0800 Subject: [PATCH] Update timestamp type int64 --- types/timestamp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/timestamp.go b/types/timestamp.go index c399fb7..db3f643 100644 --- a/types/timestamp.go +++ b/types/timestamp.go @@ -16,7 +16,7 @@ func SetLocation(name string) { } // Timestamp 時間戳 -type Timestamp int +type Timestamp int64 func GetUnixNow() Timestamp { return Timestamp(time.Now().Unix())