emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "David O'Toole" <deeteeoh1138@gmail.com>
To: emacs-orgmode@gnu.org
Subject: CSV agenda export formats some day and month values as single digits
Date: Fri, 23 Dec 2022 22:49:02 -0500	[thread overview]
Message-ID: <CAAz1J52e7ha=rtyz=Kn=o-X48XU3oNJYF57xo5hOBnz8_Twdyg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

Version: Org mode version 9.6 (release_9.6-3-ga4d38e @
/usr/local/share/emacs/29.0.60/lisp/org/)

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

The last two lines both have "2023-1-1".
This is incorrect because:

Expression: (format-time-string "%04Y-%02m-%02d" (date-to-time "2023-1-1"))
Result: "1999-12-31"

[-- Attachment #2: Type: text/html, Size: 1840 bytes --]

             reply	other threads:[~2022-12-24  3:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-24  3:49 David O'Toole [this message]
2022-12-25 12:57 ` CSV agenda export formats some day and month values as single digits Ihor Radchenko
     [not found]   ` <CAAz1J52RFMMay3YD7RSydMfp_zHQsNfAiyhT=1J9Hq0jqkdFmg@mail.gmail.com>
     [not found]     ` <CAAz1J51L30UjqxDZhxO4Kb5ymDJ24Qjw8tVt5iRGXCsoVfde9Q@mail.gmail.com>
2022-12-26  9:23       ` Ihor Radchenko
2022-12-26 10:19         ` Max Nikulin
2022-12-26 10:34           ` Ihor Radchenko
2022-12-26 15:07             ` Max Nikulin
2022-12-27 10:20               ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAz1J52e7ha=rtyz=Kn=o-X48XU3oNJYF57xo5hOBnz8_Twdyg@mail.gmail.com' \
    --to=deeteeoh1138@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).