mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +01:00
Allow to use, for example, time zones Etc/GMT+1 and Etc/GMT-1.
This commit is contained in:
parent
46e954f863
commit
d3df86068a
@ -706,8 +706,17 @@ static USHORT makeFromRegion(const char* str, unsigned strLen)
|
||||
|
||||
const char* start = str;
|
||||
|
||||
while (str < end && ((*str >= 'a' && *str <= 'z') || (*str >= 'A' && *str <= 'Z') || *str == '_' || *str == '/'))
|
||||
while (str < end &&
|
||||
((*str >= 'a' && *str <= 'z') ||
|
||||
(*str >= 'A' && *str <= 'Z') ||
|
||||
*str == '_' ||
|
||||
*str == '/') ||
|
||||
(str != start && *str >= '0' && *str <= '9') ||
|
||||
(str != start && *str == '+') ||
|
||||
(str != start && *str == '-'))
|
||||
{
|
||||
++str;
|
||||
}
|
||||
|
||||
unsigned len = str - start;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user