Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
time: RFC1123 format should not say "UTC" #13781
after reading a couple of times the RFC1123 i think that strings returned by time.Format(time.RFC1123) is not correct
searching around i found a post that reflect mo opinions about
i know that the format already exist and is "http.TimeFormat" but what i want to point out is that the term "time.RFC1123" is wrong/inexact and just bring more confusion
Looking at RFC 1123 and RFC 822, it does seem that a date in that format should say "GMT" or "UT" but not "UTC". I think it would probably be a mistake to change the behavior of time.RFC1123 at this point, but we could at least document the discrepancy. Note that the RFCs recommend the use of what Go calls time.RFC1123Z.