Given that the date stored is UTC = 0 then how do I get all records with the date of today?
SELECT * FROM table Where datefield = CURDATE()
won't work because the stored value is the day before.
So another way of asking this is - how do I add the timezone offset to the datefield field to retrieve records that match that day?
Mat
DATE
. To take timezone into account for today, this should beDATETIME
. Then you can correctly compare with timezone.