Fixed datetime handling... for good.