title: retrieving datetime from mysql in time.time in golang
body: <p>i have stored on my database (mySQL) this datatime field, last_activity: <code>2017-06-12 11:07:09</code></p>
  
  <p>im using the param <code>parseTime=True</code> on my OpenDB</p>
  
  <p>the problem is that the output is: <code>last activity: {63632862429 0 &lt;nil&gt;}</code>
  instead of <code>2017-06-12 11:07:09</code></p>
  
  <p>what am i doing wrong?</p>
  
  <p>thanks</p>
  
  <pre><code>type DateType time.Time
  
  type User struct {
      LastActivity DateType
  }
  
  
  func (stUser *User) GetUserDataByLogin(login string) {
  
  db := OpenDB()
  
  defer db.Close()
  
  // Test the connection to the database
  err := db.Ping()
  checkErr(err)
  
  err = db.QueryRow("SELECT  last_activity FROM users WHERE login = ?", login).Scan(&amp;stUser.LastActivity)
  
  if err != nil {
      if err == sql.ErrNoRows {
          // there were no rows, but otherwise no error occurred
      } else {
          log.Fatal(err)
      }
  }
  
  fmt.Println("last activity:", stUser.LastActivity)
  </code></pre>
  
  <p>}</p>