its just different - its the number of seconds since the unix epoch some time in 1970 probably the 1st of jan.
try adding a column which is a datefield
ALTER TABLE tablename ADD COLUMN datefield DATETIME;
then running an update query like
UPDATE tablename SET datefield = FROM_UNIXTIME(date);
obviously your other code would need to change then to deal with date and times rather than timestamps.
or you could just use a timestamp field type
ALTER TABLE tablename ADD COLUMN timestampfield TIMESTAMP;
UPDATE tablename SET timestampfield = FROM_UNIXTIME(date);
both of these should work.
but i did just think of something else. since there is a FROM_UNIXTIME function which converts to a date then you might well be able to use that inside the sql i gave you before making it more complex but it should still work
SELECT
IF(DATE_FORMAT(FROM_UNIXTIME(date), '%H')<8,
CONCAT(DATE_FORMAT(DATE_SUB(FROM_UNIXTIME(date), INTERVAL 1 day), '%d/%m/%Y'), "08:00:00", "to", DATE_FORMAT(FROM_UNIXTIME(date), '%d/%m/%Y'), "07:59:59"),
CONCAT(DATE_FORMAT(FROM_UNIXTIME(date), '%d/%m/%Y'), "08:00:00", "to", DATE_FORMAT(DATE_ADD(FROM_UNIXTIME(date), INTERVAL 1 day), '%d/%m/%Y'), "07:59:59"))
AS thedaystring,
SUM(total_weight) FROM delivery
where driver_id=502018 AND date>=1109628000 AND date<=1111528799
GROUP BY thedaystring
let me know if this works coz you've got me interested now.
good luck
Kris