help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Impossible to customize world clock


From: Eli Zaretskii
Subject: Re: Impossible to customize world clock
Date: Tue, 09 Apr 2024 05:36:57 +0300

> Date: Mon, 8 Apr 2024 21:49:11 +0200
> From:  Kepa via Users list for the GNU Emacs text editor 
> <help-gnu-emacs@gnu.org>
> 
> 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

You are on MS-Windows, where you need to customize
legacy-style-world-list instead.

> 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

Emacs on MS-Windows doesn't support timezone specification of the form
"America/Los_Angeles", because the Windows runtime libraries don't
support that.  You need to use the legacy format instead, as in
("PST8PDT" "Seattle").  See the doc string of legacy-style-world-list
for more details.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]