Modify date->timestamp conversion to use mktime(). This should do better than before around Daylight Savings Time transitions.