Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change TZDEFRULES and TZDEFRULESTRING to "GMT". #868

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions libc/time/localtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion libc/time/tzfile.internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#endif /* !defined TZDEFAULT */

#ifndef TZDEFRULES
#define TZDEFRULES "New_York"
#define TZDEFRULES "GMT"
#endif /* !defined TZDEFRULES */


Expand Down