I am trying to compensate for a timezone error from PHP. All the times recorded in the test table were two hours ahead. I want to update each record, past two hours from the time that already exists.
I tried:
UPDATE test
SET LastModifiedDate = SUBTIME( LastModifiedDate, '02:00:00' )
But it just updates all fields with the same value.
Please, help
tthanks
sqluf source
share