Use PHP date rather than MySQL's. Fixes Github #2.