emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Magnus Henoch <magnus.henoch@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: UIDs in icalendar export (exporting my agenda)
Date: Wed, 15 Jul 2009 20:43:32 +0100	[thread overview]
Message-ID: <84skgx20m3.fsf@linux-b2a3.site> (raw)
In-Reply-To: dd3cb46b0907151058u74f92b05u97c4a79029dcea3e@mail.gmail.com

"aldrin d'souza" <aldrindsouza@gmail.com> writes:

> if you notice, the UIDs in both the events are same. aren't they supposed to be
> different? when i import this file into an online calendar (like google) one of
> the event is dropped.
> am i missing something? i'm using org 6.28trans on emacs 23.0.94.

My guess: you're running on a system where current-time always returns
zero micro-seconds (Windows?); try with M-: (current-time).  In the
ideal case the output in the echo area looks like (19038 12367 114552),
but yours is probably like (19038 12367 0).

Since you don't have the uuidgen utility installed, the function
`org-id-time-to-b36' is being called to generate the id, but since it's
called twice in the same second and depends on current-time, it returns
the same value twice.

So someone should make `org-id-time-to-b36' return unique values in this
case.  (Append a random number?)

Magnus

  parent reply	other threads:[~2009-07-15 19:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-15 17:58 UIDs in icalendar export (exporting my agenda) aldrin d'souza
2009-07-15 19:17 ` Nick Dokos
2009-07-15 19:43 ` Magnus Henoch [this message]
2009-07-16  5:29   ` aldrin d'souza

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=84skgx20m3.fsf@linux-b2a3.site \
    --to=magnus.henoch@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).