]> Savannah Git Hosting - gnulib.git/commitdiff
Warn against bogus TZ settings
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 May 2023 16:28:57 +0000 (09:28 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 May 2023 16:29:48 +0000 (09:29 -0700)
* doc/parse-datetime.texi (Specifying time zone rules):
Warn against TZ="UTC=5".

ChangeLog
doc/parse-datetime.texi

index 06ff163e0e4e3c8051bccd544b3389e4f7d654c7..823d32b66fa96f9b4066ce8ba671485cc234c40b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-05-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Warn against bogus TZ settings
+       * doc/parse-datetime.texi (Specifying time zone rules):
+       Warn against TZ="UTC=5".
+
 2023-05-05  Bruno Haible  <bruno@clisp.org>
 
        dirfd: Add tests.
index d54d7660c87bfba9e69d1ad3e427487a9a7d7208..ec0160da8efe7b50a1cc14a6627a72584fb32787 100644 (file)
@@ -574,6 +574,9 @@ This example uses the somewhat-confusing POSIX convention for rules.
 and the time zone is 7 hours west of Greenwich, and
 @samp{TZ="<+0530>-5:30"} says that the time zone abbreviation is @samp{+0530}
 and the time zone is 5 hours 30 minutes east of Greenwich.
+(One should never use a setting like @samp{TZ="UTC-5"}, since
+this would incorrectly imply that local time is five hours east of
+Greenwich and the time zone is called ``UTC''.)
 Although trickier POSIX @env{TZ} settings like
 @samp{TZ="<-05>+5<-04>,M3.2.0/2,M11.1.0/2"} can specify some daylight
 saving regimes, location-based settings like