From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2OR0D2NoqWNOkgAAbAwnHQ (envelope-from ) for ; Mon, 26 Dec 2022 10:24:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0GiBDmNoqWM8iAAAG6o9tA (envelope-from ) for ; Mon, 26 Dec 2022 10:24:51 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9F66311357 for ; Mon, 26 Dec 2022 10:24:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9ji3-0004SR-LY; Mon, 26 Dec 2022 04:23:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9ji1-0004SI-6c for emacs-orgmode@gnu.org; Mon, 26 Dec 2022 04:23:49 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9jhy-000456-VK for emacs-orgmode@gnu.org; Mon, 26 Dec 2022 04:23:48 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id AB9682400FF for ; Mon, 26 Dec 2022 10:23:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672046622; bh=QD6PFIQRayZRLwvCjSR3Nj/r4858/tZU18G/JutLIeI=; h=From:To:Cc:Subject:Date:From; b=YTsVbrFpXzSIybmkI3QqGc5+Gg+0si2BDPUiJ+jHmjHFy0eP/uWIqmFwpyoZjfac+ g1YtBIB5qNcWjfW94xqdQ6rXy7mRIePlQuAitnsr7ZivRwqVdfAbAXg0PF0K6cwFxZ JFP8WGjpDYKYvHvGqcFIxBfVUz3dXs0YkkQsNMOiD6qwWljeprc6ARNydhU0RnULsl o+E+v7t5/Y9sA6O1c5v9s2mTW/V1GupoYA7bCAZPYAUnPMmwvhZckKAmB9KP7wVBsk OZI4ADiyp7Rv84TX76XUHMAu6Y5YEr02o+oXYkzurw4vxJKkLmfD1K1qJhzOQpJHUc AjMkS1xBjJJJw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NgXQg3RM0z6tnX; Mon, 26 Dec 2022 10:23:39 +0100 (CET) From: Ihor Radchenko To: David O'Toole Cc: emacs-orgmode@gnu.org Subject: Re: CSV agenda export formats some day and month values as single digits In-Reply-To: References: <874jtjsks5.fsf@localhost> Date: Mon, 26 Dec 2022 09:23:33 +0000 Message-ID: <87lemur016.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672046690; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gOEMSINTR/v8UJevXt83V7tU/Xg8GuE+AAMOXlDWfQs=; b=G2LP9r71n0rl0tDWqx4ZUH2K4pQ7934eA25G4mrb7ysfQ8scZIqpzr9ngR+H37/DUZqp/w iQVHuU4NtnWLKmWCTetCx8qxp1FULiUpmhP6id6Pb67izlavu43o0GM4rF9oMBiPNJ7RZj 6os4D+shVDwMeqUXvXVufrChnpF8ecAeSe2wqU4A7tQtX/5nk2iMuanKPehMSLlG8f0OcR RniRT3ingW9a2eMwiyrASIn9PS9hTZIZOeqrine+Sk/kFdtK6onQG7IgMvW6g78DUAH9Et d81AfqnN9f8EWag3HybtnhMHKbMMtdCIz6z/xxuXcHBfnLw7sViL9b0GzzBhWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YTsVbrFp; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672046690; a=rsa-sha256; cv=none; b=V5qefvg2K6CTnsc+SFtF4LPsvhFQS7ujVYugFojhodSSEQPFPeRFna4A/S9ETgx+a+eIsC 7E3ovTZHsOMMxFwoZBlPLyqrKqY1UmwtnS6umPN4fn2JJJ2YOAjJOGvCgonJvkLT+ChXo7 R9kDwvfKLPqDnh6vnd3+U0Fp3JF064b02AzrGpc10/gRFr+FTU9dbOARegTeWmHv0/VfLx WH5e0u4sRpf/7iPM3ZQyc3Zzd9g+CFVYJz4e/1dXQEOWy6Dbb3BDOiGzt/d2DZnR3ujhT3 H91ywKYcW3/jHsi+rvON2qH2eXhO6mEBLqJwt+s4NL39pdJCXeAsaLa0Gx84QQ== X-Spam-Score: -5.97 X-Migadu-Queue-Id: 9F66311357 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YTsVbrFp; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -5.97 X-TUID: LGiyMLTuh+d5 [Adding Org mailing list back to CC] "David O'Toole" writes: > Here is a script and some files that reproduce the issue for me in a fresh > "emacs -Q". > > csv-test.el --- the test script > csv-test.org --- the file to pull agenda items from > csv-test.csv --- the output Thanks! Fixed on bugfix now. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=9c79aedec > GNU Emacs 29.0.60 (build 2, x86_64-pc-linux-gnu, GTK+ Version > 3.24.33, cairo version 1.16.0) of 2022-12-04 > > Org mode version 9.6 (release_9.6-3-ga4d38e @ > /usr/local/share/emacs/29.0.60/lisp/org/) > > > > On Sun, Dec 25, 2022 at 9:37 AM David O'Toole > wrote: > >> Sure, I'll follow up with steps to reproduce it, and I'll include the >> output as an attachment. >> >> On Sun, Dec 25, 2022 at 7:57 AM Ihor Radchenko >> wrote: >> >>> "David O'Toole" writes: >>> >>> > CSV export for the agenda is formatting January 1, 2023 as "2023-1-1" >>> and >>> > not "2023-01-01". >>> > The raw output is here: https://pastebin.com/raw/EyN1JbhP >>> >>> Could you please provide detailed steps how to obtain the erroneous CSV >>> output? See https://orgmode.org/manual/Feedback.html#Feedback >>> >>> Note that pastebin is not available in all countries. If you can, please >>> send the code/text right in the email as an attachment. This is more >>> sustainable for future readers. >>> >>> -- >>> Ihor Radchenko // yantar92, >>> Org mode contributor, >>> Learn more about Org mode at . >>> Support Org development at , >>> or support my work at >>> >> > csv-test,Task 1,scheduled,TODO,,2022-12-25,,Scheduled:,,1099,2022-12-25 > csv-test,Task 2,scheduled,TODO,,2022-12-26,,Scheduled:,,1099,2022-12-26 > csv-test,Task 3,scheduled,TODO,,2023-1-1,,Scheduled:,,1099,2023-1-1 > ;; GNU Emacs 29.0.60 (build 2, x86_64-pc-linux-gnu, GTK+ Version > ;; 3.24.33, cairo version 1.16.0) of 2022-12-04 > > ;; Org mode version 9.6 (release_9.6-3-ga4d38e @ > ;; /usr/local/share/emacs/29.0.60/lisp/org/) > > ;; started with "emacs -Q" > > (defun capture-csv () > (save-excursion > (with-output-to-string > "*csv*" > (org-batch-agenda-csv "a" > org-agenda-span 10 > org-agenda-include-inactive-timestamps t > org-agenda-skip-timestamp-if-done nil > org-agenda-show-all-dates t > org-agenda-skip-scheduled-if-done nil)))) > > (setq org-agenda-files '("~/csv-test.org")) > > (let ((buffer (get-buffer-create "*csv*"))) > (switch-to-buffer buffer) > (save-window-excursion > (insert (capture-csv)))) > > > -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at