all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Gijs Hillenius" <gijs@hillenius.net>, "Paul Eggert" <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: time.el, world-clock default Calcutta/Kolkata?
Date: Thu, 08 Aug 2024 08:04:56 +0300	[thread overview]
Message-ID: <86ttfvmwp3.fsf@gnu.org> (raw)
In-Reply-To: <87cymk9n14.fsf@hillenius.net> (message from Gijs Hillenius on Wed, 07 Aug 2024 20:59:51 +0200)

> From: Gijs Hillenius <gijs@hillenius.net>
> Date: Wed, 07 Aug 2024 20:59:51 +0200
> 
> Hello
> 
> time.el defines
> 
> (defcustom zoneinfo-style-world-list
>   '(("America/Los_Angeles" "Seattle")
>     ("America/New_York" "New York")
>     ("Europe/London" "London")
>     ("Europe/Paris" "Paris")
>     ("Asia/Calcutta" "Bangalore")
>     ("Asia/Tokyo" "Tokyo"))
> 
> Which for me has been returning the wrong response for Bangalore. This
> is because in Debian (Testing and Unstable versions), tzdata no longer
> recognises Calcutta. That was the official name until 2001, it is now
> Kolkata, and earlier this year Calcutta was removed from tzdata, 
> 
> I can easily fix this by installing Debian's tzdata-legacy.
> 
> Alternatively, should time.el be modified to define ("Asia/Calcutta"
> "Bangalore")?

You mean, ("Asia/Kolkata" "Bangalore"), right?

We cannot do that unconditionally, I think, because that would screw
systems where tzdata still has Calcutta.  If we can detect failure to
find a time zone, then maybe adding some fallback mechanism to
world-clock is the way forward, so that we could try one of the
alternatives and fall back to the other if that fails.

Or maybe we should replace that entry with some other Indian time
zone, which is less controversial?  After all, it's just the default
value of a defcustom.

Paul, any other suggestions?



  reply	other threads:[~2024-08-08  5:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07 18:59 time.el, world-clock default Calcutta/Kolkata? Gijs Hillenius
2024-08-08  5:04 ` Eli Zaretskii [this message]
2024-08-08  6:10   ` Paul Eggert
2024-08-09  8:41     ` Stefan Kangas
2024-08-09 10:37       ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=86ttfvmwp3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=gijs@hillenius.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.