fix the bug of calling get_rfc1123_date twice