Several date time issues with MySql fixed.