I have a table which (lets say for example) stores hits:
id | datetime | ...
-----------------------------------
1 | 2014-05-30 15:19:00 | ...
2 | 2014-06-01 12:14:00 | ...
3 | 2014-06-04 13:06:00 | ...
4 | 2014-06-04 17:26:00 | ...
5 | ... | ...
User can generate reports they can chose a date range. However I want to give the user the ability to use their own timezone preferences.
Currently I use queries like this for example to select today's columns:
... WHERE datetime >= CURDATE()
How can I do this? Is it better to store the date as unixtime? I've read every result on Google but I am confused.
This query will be called a lot so performance is very important