mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 10:20:29 +00:00
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:
parent
8dbfb77890
commit
5c0c422477
2 changed files with 3 additions and 4 deletions
|
@ -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 */
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#endif /* !defined TZDEFAULT */
|
||||
|
||||
#ifndef TZDEFRULES
|
||||
#define TZDEFRULES "New_York"
|
||||
#define TZDEFRULES "GMT"
|
||||
#endif /* !defined TZDEFRULES */
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue