use custom strftime if possible