From: Martin Kaffanke <martin@kaffanke.at>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: org-read-date wrong for dates before 1970 ?
Date: Thu, 17 Sep 2015 11:18:30 +0200 [thread overview]
Message-ID: <87fv2d2yl5.fsf@kaffanke.at> (raw)
Hi there,
I'm doing in *scratch* the following (with C-j at the end of the line):
(org-insert-time-stamp (org-read-date nil 'totime "8. März 2012"))
<2012-10-08 Mon>"<2012-10-08 Mon>"
(org-insert-time-stamp (org-read-date nil 'totime "8. März 1952"))
<1970-10-08 Don>"<1970-10-08 Don>"
(org-insert-time-stamp (org-read-date nil 'totime "1952-03-08"))
<1970-03-08 Son>"<1970-03-08 Son>"
So there a (german, and english - the last one) formated time is
translated correct for dates after 1970, but its wrong before that.
How can we fix that?
(this code is used in the google-contacts-to-org-contacts functions from
the google-contacts package)
Thanks,
Martin
next reply other threads:[~2015-09-17 9:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-17 9:18 Martin Kaffanke [this message]
2015-09-17 9:28 ` org-read-date wrong for dates before 1970 ? Nicolas Goaziou
2015-09-17 9:46 ` Martin Kaffanke
2015-09-17 9:48 ` Eric S Fraga
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=87fv2d2yl5.fsf@kaffanke.at \
--to=martin@kaffanke.at \
--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).