fix 's' vs 'S' for datetime