Why does golang time function fail on certain dates : <p>I have checked the other suggestions for fixing this problem and they don't work.</p>

<p>The current code seems to work until you enter a different date and then I get random failures like below.</p>

<p>The code is as follows:</p>

<pre><code>yy, mm, dd = 11, 27, 2019
s_yy, s_mm, s_dd = 11, 1, 2019
e_yy, e_mm, e_dd = 1, 1, 2020

input := fmt.Sprintf("%d-%d-%d", yy, mm, dd)
input += "T15:04:05.000-07:00"
t, _ := time.Parse("2006-01-02T15:04:05.000-07:00", input)

input_s := fmt.Sprintf("%d-%d-%d", s_yy, s_mm, s_dd)
input_s += "T15:04:05.000-07:00"
t_s, _ := time.Parse("2006-01-02T15:04:05.000-07:00", input_s)

input_e := fmt.Sprintf("%d-%d-%d", e_yy, e_mm, e_dd)
input_e += "T15:04:05.000-07:00"
t_e, _ := time.Parse("2006-01-02T15:04:05.000-07:00", input_e)

fmt.Println("t = ", t, "  t_s = ", t_s, "  t_e", t_e)
</code></pre>

<p>The result is the following:</p>

<p>t =  2019-12-27 15:04:05 -0700 -0700   t_s =  0001-01-01 00:00:00 +0000 UTC   t_e 0001-01-01 00:00:00 +0000 UTC</p>

<p>Any Help would be a help
Thanks in advance.</p>
