get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2230247/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2230247,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230247/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260429141307.1875250-1-jwakely@redhat.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260429141307.1875250-1-jwakely@redhat.com>",
    "date": "2026-04-29T14:11:59",
    "name": "[committed,gcc-16] libstdc++: Update leap seconds expiry to 2026a value",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "310d47d579ae4abe5a63ae6271deadd7de54e3c2",
    "submitter": {
        "id": 48004,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/48004/?format=api",
        "name": "Jonathan Wakely",
        "email": "jwakely@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260429141307.1875250-1-jwakely@redhat.com/mbox/",
    "series": [
        {
            "id": 502074,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502074/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502074",
            "date": "2026-04-29T14:11:59",
            "name": "[committed,gcc-16] libstdc++: Update leap seconds expiry to 2026a value",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502074/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230247/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230247/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=eWElZmeZ;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=eWElZmeZ",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "sourceware.org; spf=pass smtp.mailfrom=redhat.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.133.124"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5K6Q49BZz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:13:49 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 340E94BB58C2\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 14:13:47 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTP id A122B4BA798F\n for <gcc-patches@gcc.gnu.org>; Wed, 29 Apr 2026 14:13:15 +0000 (GMT)",
            "from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-314-98WNLKYEO-aOpn5pkHjHzQ-1; Wed,\n 29 Apr 2026 10:13:11 -0400",
            "from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id D51DE193530B; Wed, 29 Apr 2026 14:13:09 +0000 (UTC)",
            "from zen.kayari.org (unknown [10.44.34.137])\n by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id A739630001A1; Wed, 29 Apr 2026 14:13:08 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 340E94BB58C2",
            "OpenDKIM Filter v2.11.0 sourceware.org A122B4BA798F"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org A122B4BA798F",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org A122B4BA798F",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777471995; cv=none;\n b=uXjeiWSlBTrC5KXz5p6JrNagpjVhTZxjxLDBTO+xoXYwWM+0QveF2mIj3wws5V2gSOfY/GjICEj3U1MF1QU7fu49MSuA2ISL4i0I1XzFURxlKW5hjTm4oaitWfdUTovdmCUauu4EeGE1gcxwB/0UuWG/Z0FNx4yqNovioDNqbos=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777471995; c=relaxed/simple;\n bh=uqUL//sNYbRPI/EBziz8H1xoO2Ioe/Xs4u2kFzBzMiE=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=k+k5YaRoDLFXbJH/SckBxtu/ehli1FYEPBLaeoGjKvxS5CrUR/t507Wr/RZ5YDmYK85bafwMvWgyqhpCI2rZuan6eoZaDDBcbtbaETNj5RC1bst5Gv8l9loXbcQ9e6Y/KMCYXPsxzThKn/VwMQ6ts3EI1WQENs4HsSzV6XQIPd4=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1777471995;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=SIPZB/sbuovlThjcd4ntXsa+PBBwwgdauAoht5omwYE=;\n b=eWElZmeZV8ZJsb7ABYJ9CXCFo4MxGEO6G8v5g5hXnjQP1RZWv+tOtuJV19HUnXJobVYj1m\n 1T5vvYH/BZylqjEGNJz6T+yaNmLRn3yZ5vWWSm6LQWUxnlBKIBQq/BKG8a6mLfFPqEq0BD\n YW+VKzkHPiMvJdp4G5ikUPqHhjDaFx8=",
        "X-MC-Unique": "98WNLKYEO-aOpn5pkHjHzQ-1",
        "X-Mimecast-MFC-AGG-ID": "98WNLKYEO-aOpn5pkHjHzQ_1777471990",
        "From": "Jonathan Wakely <jwakely@redhat.com>",
        "To": "gcc-patches@gcc.gnu.org,\n\tlibstdc++@gcc.gnu.org",
        "Subject": "[committed,\n gcc-16] libstdc++: Update leap seconds expiry to 2026a value",
        "Date": "Wed, 29 Apr 2026 15:11:59 +0100",
        "Message-ID": "<20260429141307.1875250-1-jwakely@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.4",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "9PSD8UPqEOxuLNILm-pbJU5Cy2IKWKKH782OqVGFX7c_1777471990",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "Set the new leap seconds expiry date from the 2026a tzdata release.\n\nThis is a partial backport of r17-57-gb8fd759dc61c0a taking only the\nupdated leapseconds expiry date, not the tzdata.zi changes. Most users\nget tzdata.zi from /usr/share/zoneinfo/tzdata.zi supplied by the OS, so\nthe embedded copy isn't needed. The leap second expiry is hardcoded\nthough so updating the value avoids calling into the shared library for\ndates after 2026-06-28 (and before the new expiry, 2026-12-28).\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/std/chrono (chrono::__detail::__get_leap_second_info):\n\tUpdate expiry date for leap seconds list.\n\t* src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds):\n\tLikewise.\n---\n\nTested x86_64-linux and pushed to the gcc-16 branch (approved by Jakub).\n\n libstdc++-v3/include/std/chrono | 2 +-\n libstdc++-v3/src/c++20/tzdb.cc  | 4 ++--\n 2 files changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono\nindex 7c887f56cc23..674f867dcdc7 100644\n--- a/libstdc++-v3/include/std/chrono\n+++ b/libstdc++-v3/include/std/chrono\n@@ -3254,7 +3254,7 @@ namespace __detail\n       };\n       // The list above is known to be valid until (at least) this date\n       // and only contains positive leap seconds.\n-      constexpr sys_seconds __expires(1782604800s); // 2026-06-28 00:00:00 UTC\n+      constexpr sys_seconds __expires(1798416000s); // 2026-12-28 00:00:00 UTC\n \n #if _GLIBCXX_USE_CXX11_ABI || ! _GLIBCXX_USE_DUAL_ABI\n       if (__ss > __expires)\ndiff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc\nindex eb6ac7d07c72..b0fbfc46a6d3 100644\n--- a/libstdc++-v3/src/c++20/tzdb.cc\n+++ b/libstdc++-v3/src/c++20/tzdb.cc\n@@ -1256,8 +1256,8 @@ namespace std::chrono\n   pair<vector<leap_second>, bool>\n   tzdb_list::_Node::_S_read_leap_seconds()\n   {\n-    // This list is valid until at least 2026-06-28 00:00:00 UTC.\n-    constexpr auto expires = sys_days{2026y/06/28};\n+    // This list is valid until at least 2026-12-28 00:00:00 UTC.\n+    constexpr auto expires = sys_days{2026y/12/28};\n     vector<leap_second> leaps\n     {\n       (leap_second)  78796800, // 1 Jul 1972\n",
    "prefixes": [
        "committed",
        "gcc-16"
    ]
}