Skip to content

Commit

Permalink
fix date
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhijian committed Jul 16, 2019
1 parent 69abe6d commit 61cf77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Time() int64 {
return time.Now().Unix()
}

func Date(timestamp int64, format ...string) string {
func Date(format ...string, timestamp int64) string {
if len(format) > 0 {
return time.Unix(timestamp, 0).Format(format[0])
}
Expand Down

0 comments on commit 61cf77d

Please sign in to comment.