I have the following code:

```
private void saveDT()
    {

        MySqlConnection myConn = new MySqlConnection(Common.myConnection);
        myConn.Open();
        string sLastLogin = DateTime.UtcNow.ToString("dd.MM.yyyy HH:mm:ss");
        MySqlCommand mySqlCmd = new MySqlCommand("UPDATE ha_system.tblaccounts SET lastlogin='" + DateTime.Now.ToString("dd.MM.yyyy HH:mm:ss") + "' WHERE name='" + Common.ActiveUser + "'", myConn);
        try
        {
            mySqlCmd.ExecuteNonQuery();
        }
        catch (Exception ex)
        {
            MessageBox.Show("Fehler: " + ex.Message);
        }
        finally
        {
        }
    }

```

But time and date is only saved after the second login in the database column "lastlogin".
Why? What can I do to fix this?