Change TZDEFRULES from New_York to GMT and TZDEFRULESTRING from ,M3.2.0,M11.1.0 to GMT0.

This is a companion to changing the default TZ value from GST to GMT. The rationale is the same: it’s a less surprising "not defined" default.
This commit is contained in:
Michael Lenaghan 2023-07-25 19:10:03 -04:00
parent 8dbfb77890
commit 5c0c422477
2 changed files with 3 additions and 4 deletions

View file

@ -110,11 +110,10 @@ static const char gmt[] = "GMT";
/*
** The DST rules to use if TZ has no rules and we can't load TZDEFRULES.
** Default to US rules as of 2017-05-07.
** POSIX does not specify the default DST rules;
** for historical reasons, US rules are a common default.
** Default to GMT rules as of 2023-07-25.
*/
#ifndef TZDEFRULESTRING
#define TZDEFRULESTRING ",M3.2.0,M11.1.0"
#define TZDEFRULESTRING "GMT0"
#endif
struct ttinfo { /* time type information */

View file

@ -29,7 +29,7 @@
#endif /* !defined TZDEFAULT */
#ifndef TZDEFRULES
#define TZDEFRULES "New_York"
#define TZDEFRULES "GMT"
#endif /* !defined TZDEFRULES */