Convert dates to seconds instead of milliseconds