{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/26029","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/26029/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/26029/comments","events_url":"https://api.github.com/repos/golang/go/issues/26029/events","html_url":"https://github.com/golang/go/issues/26029","id":335152015,"node_id":"MDU6SXNzdWUzMzUxNTIwMTU=","number":26029,"title":"time: tzinfo for Thailand not present","user":{"login":"zhexuany","id":13320708,"node_id":"MDQ6VXNlcjEzMzIwNzA4","avatar_url":"https://avatars0.githubusercontent.com/u/13320708?v=4","gravatar_id":"","url":"https://api.github.com/users/zhexuany","html_url":"https://github.com/zhexuany","followers_url":"https://api.github.com/users/zhexuany/followers","following_url":"https://api.github.com/users/zhexuany/following{/other_user}","gists_url":"https://api.github.com/users/zhexuany/gists{/gist_id}","starred_url":"https://api.github.com/users/zhexuany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhexuany/subscriptions","organizations_url":"https://api.github.com/users/zhexuany/orgs","repos_url":"https://api.github.com/users/zhexuany/repos","events_url":"https://api.github.com/users/zhexuany/events{/privacy}","received_events_url":"https://api.github.com/users/zhexuany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-24T05:17:43Z","updated_at":"2018-06-24T09:48:12Z","closed_at":null,"author_association":"NONE","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n\r\n### What version of Go are you using (`go version`)?\r\n\r\n```\r\ngo version go1.10.3 darwin/amd64\r\n```\r\n\r\n### Does this issue reproduce with the latest release?\r\nYes\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n```\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/Users/zhexuany/Library/Caches/go-build\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"darwin\"\r\nGOOS=\"darwin\"\r\nGOPATH=\"/Users/zhexuany/repo/go\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/Cellar/go/1.10.3/libexec\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/usr/local/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"clang\"\r\nCXX=\"clang++\"\r\nCGO_ENABLED=\"1\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/t9/s5qvdzpx3h5g58xzpm5gn8l00000gn/T/go-build676470505=/tmp/go-build -gno-record-gcc-switches -fno-common\"\r\n```\r\n\r\n### What did you do?\r\nIn Thailand, I ran the following code:\r\n\r\n```\r\npackage main\r\n\r\nimport (\r\n        \"fmt\"\r\n\t\"time\"\r\n\t)\r\n\r\nfunc main() {\r\n\tt := time.Now()\r\n\tfmt.Println(t.String())\r\n}\r\n```\r\n\r\nIf possible, provide a recipe for reproducing the error.\r\nA complete runnable program is good.\r\nA link on play.golang.org is best.\r\n\r\n\r\n### What did you expect to see?\r\n`2018-06-24 12:17:01.930111356 +0700 ICT m=+0.000337067`\r\n### What did you see instead?\r\n`2018-06-24 12:17:01.930111356 +0700 +07 m=+0.000337067`\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/399743672","html_url":"https://github.com/golang/go/issues/26029#issuecomment-399743672","issue_url":"https://api.github.com/repos/golang/go/issues/26029","id":399743672,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTc0MzY3Mg==","user":{"login":"zhexuany","id":13320708,"node_id":"MDQ6VXNlcjEzMzIwNzA4","avatar_url":"https://avatars0.githubusercontent.com/u/13320708?v=4","gravatar_id":"","url":"https://api.github.com/users/zhexuany","html_url":"https://github.com/zhexuany","followers_url":"https://api.github.com/users/zhexuany/followers","following_url":"https://api.github.com/users/zhexuany/following{/other_user}","gists_url":"https://api.github.com/users/zhexuany/gists{/gist_id}","starred_url":"https://api.github.com/users/zhexuany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhexuany/subscriptions","organizations_url":"https://api.github.com/users/zhexuany/orgs","repos_url":"https://api.github.com/users/zhexuany/repos","events_url":"https://api.github.com/users/zhexuany/events{/privacy}","received_events_url":"https://api.github.com/users/zhexuany/received_events","type":"User","site_admin":false},"created_at":"2018-06-24T09:48:12Z","updated_at":"2018-06-24T09:48:12Z","author_association":"NONE","body":"Ah, I did not notice this change. \r\n\r\nUnder this case, maybe we may need change `time.Parse(\"20060102-15:04:05 -0700 MST\", \"2018-06-24 12:17:01.930111356 +0700 +07\")`? \r\n\r\nBelow is a snippet to reproduce\r\n```\r\npackage main\r\n\r\nimport (\r\n        \"fmt\"\r\n\t\"time\"\r\n\t)\r\n\r\nfunc main() {\r\n\tif _, err := time.Parse(\"20060102-15:04:05 -0700 MST\", \"20180624-12:17:01 +0700 +07\"); err != nil {\r\n\t\tfmt.Println(err)\r\n\t}\r\n}\r\n```\r\n\r\nIt returns a error complaining `parsing time \"20180624-12:17:01 +0700 +07\" as \"20060102-15:04:05 -0700 MST\": cannot parse \"+07\" as \"MST\"` "}}
{"actor":{"display_login":"zhexuany"}}