I have to convert a string date with this format:
Thu, 01 Nov 2018 14:20:34 +0700
.. into this format:
2018-11-01 14:20:34
I tried it with the following code:
dt_pub, err := time.Parse("RFC1123", Thu, 01 Nov 2018 14:20:34 +0700)
dt_pub.Format("2006-01-02 15:04:05")
But unfortunately, the result looks like this:
0001-01-01 00:00:00 +0000 UTC