Update timestamp helper to return NULL from format() when working with 0000-00-00