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

Commit6efb081

Browse files
committed
Proceed to look for the next timezone when matching a localized
Windows timezone name where the information in the registry isincomplete, instead of aborting.This fixes cases when the registry information is incomplete fora timezone that is alphabetically before the one that is in use.Per report from Alexander Forschner
1 parent1c850fa commit6efb081

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/timezone/pgtz.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.68 2010/04/06 20:35:11 mha Exp $
9+
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.69 2010/04/08 11:25:58 mha Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -1094,7 +1094,7 @@ identify_system_timezone(void)
10941094
(errmsg_internal("could not query value for 'std' to identify Windows timezone \"%s\": %i",
10951095
keyname, (int)r)));
10961096
RegCloseKey(key);
1097-
break;
1097+
continue;/* Proceed to look at the next timezone */
10981098
}
10991099
if (strcmp(tzname,zonename)==0)
11001100
{
@@ -1111,7 +1111,7 @@ identify_system_timezone(void)
11111111
(errmsg_internal("could not query value for 'dlt' to identify Windows timezone \"%s\": %i",
11121112
keyname, (int)r)));
11131113
RegCloseKey(key);
1114-
break;
1114+
continue;/* Proceed to look at the next timezone */
11151115
}
11161116
if (strcmp(tzname,zonename)==0)
11171117
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp