A table on MySQL has several columns of date type, while browsing the table on phpMyAdmin and mysql web front I can see data as being plain dates.
However, when I run a simple script on PHP one of those columns comes back with a timestamp YYYY-MM-DD 00:00:00.
I migrated both the files and databases to a different system and I am no longer able to reproduce the bug.
Is this due to some misconfiguration of PHP/MySQL or could the data have been inserted in a way that it ended up corrupt and querying it returned an unexpected timestamp?
Example: A query like:
"SELECT `cf_719`,`cf_711` FROM `vtiger_ticketcf` WHERE `ticketid`=682"
where both cf_719 abd cf_711 are of type date would return
array(2) { ["cf_719"]=> string(19) "2015-04-08 00:00:00" ["cf_711"]=> string(10) "2015-04-08" }
EDIT: It seems I found the solution. The problem was a seeming bug in their phpMyAdmin application, where it displayed the field as 'date', however, the mysql command line tool query DESC revealed it to be a datetime type. I don't even know what I should learn from this- trust nothing but command line.