Skip to content

Commit

Permalink
docs:add code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
R22627 authored and R22627 committed Nov 13, 2023
1 parent f17cb52 commit ab59504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand Down
2 changes: 1 addition & 1 deletion time/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ab59504

Please sign in to comment.