bugfix date_format