Skip to content

time: RFC1123 format should not say "UTC" #13781

@m-ivanov

Description

@m-ivanov

after reading a couple of times the RFC1123 i think that strings returned by time.Format(time.RFC1123) is not correct

fmt.Printf("\n\nthis is not RFC1123  %s \n\n", time.Now().UTC().Format(time.RFC1123));
// Wed, 30 Dec 2015 15:10:40 UTC 

searching around i found a post that reflect mo opinions about
http://stackoverflow.com/questions/25658897/is-utc-a-valid-timezone-name-for-rfc-1123-specification

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions