bmc-toolbox/bmclib

Incorrect time.Format() strings

nnuss opened this issue · 0 comments

nnuss commented

I spotted in #245 some cases of Time.Format() like the following:

t.Format("Fri Jun 01")

Unfortunately Fri and Jun are not valid format words and end up being passed through as static strings, while 01 has the meaning of "month" in time.Format().

Playground example of the issue and minimal fix : https://go.dev/play/p/50Xota3I8Q1

See: https://pkg.go.dev/time#pkg-constants