unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kepa via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Impossible to customize world clock
Date: Mon, 8 Apr 2024 21:49:11 +0200	[thread overview]
Message-ID: <171260575677.7.10531721947495332726.303927142@slmails.com> (raw)

Hi

Today I have tried to customize and use the world clock.

Funny, the default world clocks are ok, but I can't customize it to add 
new zones.


Default list and clocks:

  '(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"))))

Seattle   lunes 08 abril 12:42 PDT
New York  lunes 08 abril 15:42 EDT
London    lunes 08 abril 20:42 BST
Paris     lunes 08 abril 21:42 CDT
Bangalore martes 09 abril 01:12 IST
Tokyo     martes 09 abril 04:42 JST


I add a new one (Europe/Berlin):

  '(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")
      ("Europe/Berlin" "Germany"))))


The world clock doesn't change:

Seattle   lunes 08 abril 12:44 PDT
New York  lunes 08 abril 15:44 EDT
London    lunes 08 abril 20:44 BST
Paris     lunes 08 abril 21:44 CDT
Bangalore martes 09 abril 01:14 IST
Tokyo     martes 09 abril 04:44 JST


Ok, let's customize instead then the "World Clock List":

  '(world-clock-list '(("America/Los_Angeles" "Seattle")))


And world clock is wrong:

Seattle lunes 08 abril 20:48 ric
Germany lunes 08 abril 20:48 ope


OS: Windows 10

GNU Emacs 29.2 (build 2, x86_64-w64-mingw32) of 2024-01-18


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

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-08 19:49 Kepa via Users list for the GNU Emacs text editor [this message]
2024-04-08 20:45 ` Impossible to customize world clock tpeplt
2024-04-09  4:00   ` Eli Zaretskii
2024-04-09 13:46     ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-09 14:32       ` Eli Zaretskii
2024-04-09 15:12         ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-09 15:28           ` Eli Zaretskii
2024-04-09 16:52             ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-09 18:34               ` Eli Zaretskii
2024-04-09 18:41                 ` Emanuel Berg
2024-04-10  2:32                   ` Eli Zaretskii
2024-04-10  2:48                 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-10 13:53                   ` Eli Zaretskii
2024-04-09 13:52     ` tpeplt
2024-04-09  2:36 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2024-04-13 12:15 Kepa via Users list for the GNU Emacs text editor

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=171260575677.7.10531721947495332726.303927142@slmails.com \
    --to=help-gnu-emacs@gnu.org \
    --cc=gnu.cognition199@slmails.com \
    /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.
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).