There's lots of recommendations out there about handling dates. I'd just like to clarify something. Let's say:
- user is inserting records into a database
- unix timestamps of insertion date are generated for this record
Now the user wants to query a date interval in the database:
- user provides 2 dates in his local timezone
- use these values to convert timezone to UTC and get the timestamp
- query the records in the database based on the 2 integers from conversion (eg. WHERE date >= FIRST and date <= SECOND)
- convert the retrieved timestamps to local timezone again for display
I know that would be possible with PHP, but and wouldn't need to care about mysql's timezone settings in this case - only php's. The system would be 64 bit so running out of space to store the date is not an issue. But ...
Would that raise any other serious issues like with DST changes or something else?