title: Parsing a golang time object from an incomplete string
body: <p>I have the following date string: 2017-09-04T04:00:00Z</p>
  
  <p>I need to parse this string into a golang time in order to have uniform data across my application. Here is the code so far:</p>
  
  <pre><code>parsedTime := "2017-09-04T04:00:00Z"
  test, err := time.Parse(time.RFC3339, parsedTime)
  check(err)
  fmt.Println(test)
  </code></pre>
  
  <p>I get the following error when I try to run the program:</p>
  
  <pre><code>": extra text: 0:00 +0000 UTC parsing time "2017-09-04T04:00:00Z
  </code></pre>
  
  <p>How can I either add the extra text that it is looking for or get the parser to stop looking after the Z?</p>
  
  <p>I have also tried the following:</p>
  
  <pre><code>parsedTime := "2017-09-04T04:00:00Z"
  test, err := time.Parse("2006-01-02T03:04:05Z", parsedTime)
  check(err)
  fmt.Println(test)
  </code></pre>
  
  <p>Which returns the following error:</p>
  
  <pre><code>": extra text: 017-09-04T04:00:00Z
  </code></pre>