Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf309492

Browse files
committed
Sync our copy of the timezone library with IANA release tzcode2016g.
This is mostly to absorb some corner-case fixes in zic for year-2037timestamps. The other changes that have been made are unlikely to affectour usage, but nonetheless we may as well take 'em.
1 parenta321543 commitf309492

File tree

4 files changed

+250
-198
lines changed

4 files changed

+250
-198
lines changed

‎src/timezone/localtime.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,9 +1280,8 @@ gmtsub(pg_time_t const * timep, int32 offset, struct pg_tm * tmp)
12801280
result=timesub(timep,offset,gmtptr,tmp);
12811281

12821282
/*
1283-
* Could get fancy here and deliver something such as "UT+xxxx" or
1284-
* "UT-xxxx" if offset is non-zero, but this is no time for a treasure
1285-
* hunt.
1283+
* Could get fancy here and deliver something such as "+xx" or "-xx" if
1284+
* offset is non-zero, but this is no time for a treasure hunt.
12861285
*/
12871286
if (offset!=0)
12881287
tmp->tm_zone=wildabbr;

‎src/timezone/private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#include"pgtime.h"
2525

26+
/* This string was in the Factory zone through version 2016f. */
2627
#defineGRANDPARENTED"Local time zone must be set--see zic manual page"
2728

2829
/*

‎src/timezone/strftime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pg_strftime(char *s, size_t maxsize, const char *format,
128128
intwarn;
129129

130130
warn=IN_NONE;
131-
p=_fmt(((format==NULL) ?"%c" :format),t,s,s+maxsize,&warn);
131+
p=_fmt(format,t,s,s+maxsize,&warn);
132132
if (p==s+maxsize)
133133
return0;
134134
*p='\0';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp