From nobody Sun Apr 2 13:53:58 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PqFqq1zx4z43fmX for ; Sun, 2 Apr 2023 13:53:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PqFqq0zLSz3j9Y for ; Sun, 2 Apr 2023 13:53:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680443639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sucvNBL0s6NZ9eHBZ9xbhKOwLqkbTxELfI6nSaMZS/o=; b=rBmdJntzCQ1ST/qSI9B35W+6JFV4SG38nNhRYLA8Tvkw8cu7miEx+GBOyjzBVvJ1c4hbjg 4lbLKRGUb4hQXHAOsKraSIwNbdY0zJ4smqZOV2XH2vdjv9rlkl0P89SlvTbphLZXuwJoFW 7pM3z6JF8DVSQIKs8H23wRoLYc/iGQHWY81sDrza/DNXmhimreZfRiGsgbPgp4fET/na3Y Wc7XkjdgTHZyguWGbqSMCqJdKFr8A9qnuRsdNQAoADjMNcHTFE5ZN0MgdlI0WKgIGnhY/2 KoNpSdg1bOBCaj/RYFMpfOkDag0DXOd89MXSqK8+565e/MxDaDqrM77panOoWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680443639; a=rsa-sha256; cv=none; b=AR17rNB4zbNEfxbuFZf3eTEjdf/LSqC0/kAnEDsgS9XhhETeB/cT5IlvsNHd+M018QTgm2 Cy+ty9tUCXpaUF4TEoqQLI7mExg/iBQzDAIfEiriZJ3dueNf80URxp8BmDUKkmQDL2nip2 hFvIl7/tI1ZKSezJeI6Fc50WIa26K/aZhXTwyN3jVRWiR5NjCjRDwLei7PanjfiLKK2mxK C7MrlQS7LcapRy4TZi00PvC0Dyz6NPLWWaIG30aqlMcFOeavZukCf0Tce0BDBVyqvhBA9O 4KUQ1UdizlC5aMyiNsAoAdOwf9jUn0u+oUqDSAglMQqa6GG0oDC1O+pVYF/k+A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PqFqq05GGzKSy for ; Sun, 2 Apr 2023 13:53:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 332Drwnq001980 for ; Sun, 2 Apr 2023 13:53:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 332DrwFe001979 for bugs@FreeBSD.org; Sun, 2 Apr 2023 13:53:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 257075] touch(1) does not accept input from date(1) with -I to -d Date: Sun, 02 Apr 2023 13:53:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tamelingdaniel@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257075 --- Comment #4 from Daniel Tameling --- Created attachment 241265 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D241265&action= =3Dedit Adds support for the output ISO 8601 output of date(1) I tried to come up with a patch. I looked at the source code of date and it manually adds the colon. So I had to remove it manually. I now supports the timezone with and without a colon. $ ./touch -d 2021-07-09T10:17:08+02:00 test1 $ ./touch -d 2021-07-09T10:17:08+0200 test2 $ gtouch -d 2021-07-09T10:17:08+02:00 test3 $ stat -f '%Sm %N' test*=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 Jul 9 10:17:08 2021 test1 Jul 9 10:17:08 2021 test2 Jul 9 10:17:08 2021 test3 --=20 You are receiving this mail because: You are the assignee for the bug.=