title: Test Django with Mysql 8.0 datetime incompatible
body: <p>Test Django with Mysql 8.0 datetime incompatible.</p>
  
  <p>I'm trying to run tests with mysql 8.0, however I'm encountering some inconsistencies. Could someone help with this?</p>
  
  <p>Mysql 8.0.11
  Django 2.0.4</p>
  
  <pre><code>&gt; AttributeError at /admin/login/ 
  &gt;
  &gt;'datetime.datetime' object has no
  &gt; attribute 'split' 
  &gt;
  &gt;Request Method:    
  &gt;
  &gt;POST Request
  &gt; URL:  http://localhost:8000/admin/login/?next=/admin/ 
  &gt;
  Django
  &gt; Version:  2.0.4 
  &gt;
  &gt;Exception Type:    AttributeError Exception Value: 
  &gt; 'datetime.datetime' object has no attribute 'split' 
  &gt;
  &gt;Exception
  &gt; Location: /usr/local/lib/python3.6/site-packages/mysql/connector/conversion.py
  &gt; in _DATETIME_to_python, line 506 Python
  &gt; 
  &gt;
  &gt;Executable:    /usr/local/bin/python Python Version:   3.6.5
  </code></pre>