Fix date_format behaviour with unix timestamps