When running this code, the result should show the date and zone
It's amazing that the result shows the time zone twice, and I can’t understand why
package main
import (
"fmt"
"time"
)
func main() {
mytime, _ := time.Parse("02/Jan/2006:15:04:05 -0700", "07/Apr/2017:01:26:05 +0530")
fmt.Println(mytime)
}
Result of this
2017-04-07 01:26:05 +0530 +0530
So my question is: why is the time zone displayed twice?
source
share