make the method toHTTPTimeString customizable