Make ts_format static.  It is unused outside this file.