GNU bug report logs - #79437
30.2; world-clock silently and incorrectly parses invalid time zone

Previous Next

Package: emacs;

Reported by: "Jorge P. de Morais Neto" <jorge+git <at> disr.it>

Date: Fri, 12 Sep 2025 16:06:03 UTC

Severity: normal

Found in version 30.2

Full log


View this message in rfc822 format

From: Jorge P. de Morais Neto <jorge+git <at> disr.it>
To: Paul Eggert <eggert <at> cs.ucla.edu>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 79437 <at> debbugs.gnu.org
Subject: bug#79437: 30.2; world-clock silently and incorrectly parses invalid time zone
Date: Sat, 13 Sep 2025 20:56:44 -0300
Hi.  I reply below:

Em [2025-09-13 sáb 08:05:55-0700], Paul Eggert escreveu:

> No, as we merely need to check whether the TZ setting matches a time
> zone file. (This is for the typical case where each named time zone
> has a file; Android would be different.)
>
> Yeah, probably not worth the hassle.

I am an IT infrastructure analyst and not a software developer, so I am
unsure whether to opine on the bug's solution, but what "hassle" are you
talking about?

A. Development time;
B. code complexity; or
C. runtime cost?

Anyway, I see many possible solutions and workarounds:

1. `world-clock' could check the timezone name is valid, and warn in
   case it is not.
2. custom.el could validate `zoneinfo-style-world-list' when it is set.
3. The docstring of `zoneinfo-style-world-list' and `world-clock' could
   warn the user about the problem.

I believe 3 should be implemented in any case.  Ideally it would be
combined with 1, 2, or preferably both.

Kind regards!




This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.