only strtotime when needed