diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3854ceb..68b62e5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.21 - name: Build run: go build -v ./... diff --git a/time/time.go b/time/time.go index 286c157..40248d8 100644 --- a/time/time.go +++ b/time/time.go @@ -224,7 +224,7 @@ func IsSameWeek(ts1, ts2 int64) bool { return GetMonDate(t1) == GetMonDate(t2) } -// GetBeijingTime gets Beijing Time from time string and layout. +// GetBeijingTime gets Beijing Time from time layout and value string. // The location name Asia/Shanghai from IANA Time Zone Database standards for Beijing Time. func GetBeijingTime(layout, value string) (t time.Time, err error) { location, err := time.LoadLocation("Asia/Shanghai")