Skip to content

fixes bug in timezone resolution that prevents some timezones being resolved#332

Merged
jodastephen merged 1 commit intoJodaOrg:masterfrom
pandacalculus:master
Dec 7, 2015
Merged

fixes bug in timezone resolution that prevents some timezones being resolved#332
jodastephen merged 1 commit intoJodaOrg:masterfrom
pandacalculus:master

Conversation

@pandacalculus
Copy link
Copy Markdown
Contributor

@jodastephen 027bfdd introduced a subtle timezone parsing bug into 2.9.x - the binary search implementation doesn't pivot on string length correctly. The material result is that some shorter timezone names won't resolve if there are names in the timezone list that contain the shorter name as a prefix. We encountered this with the timezone "Etc/GMT" failing to parse when we upgraded to 2.9.1. This has forced us to rollback to 2.8.2 pending a fix.

@pandacalculus pandacalculus changed the title fixes subtle bug in timezone binary search fixes bug in timezone resolution that prevents some timezones being resolved Nov 24, 2015
jodastephen added a commit that referenced this pull request Dec 7, 2015
fixes bug in timezone resolution that prevents some timezones being resolved
@jodastephen jodastephen merged commit f5bd8f5 into JodaOrg:master Dec 7, 2015
@jodastephen
Copy link
Copy Markdown
Member

Thanks

@jmax01
Copy link
Copy Markdown

jmax01 commented Jul 18, 2016

This change breaks formats with trailing literals: #386

jodastephen added a commit that referenced this pull request Jul 20, 2016
The fix in v2.9.2 caused problems when the time-zone being parsed
was not the last element in the input string. New approach uses up-front
grouping to reduce the search space based on the common slash separator
Fixes #386
See #332
tlrx added a commit to elastic/elasticsearch that referenced this pull request Nov 10, 2016
This commit updates JodaTime to version 2.9.5 that contain a fix for a bug when parsing time zones (see JodaOrg/joda-time#332, JodaOrg/joda-time#386 and JodaOrg/joda-time#373).

It also remove the joda-convert dependency that seems to be unused.
    
closes #20911

Here is the changelog for 2.9.5:
```
Changes in 2.9.5
----------------
 - Add Norwegian period translations [#378]

 - Add Duration.dividedBy(long,RoundingMode) [#69, #379]

 - DateTimeZone data updated to version 2016i

 - Fixed bug where clock read twice when comparing two nulls in DateTimeComparator [#404]

 - Fixed minor issues with historic time-zone data [#373]

 - Fix bug in time-zone binary search [#332, #386]
  The fix in v2.9.2 caused problems when the time-zone being parsed
  was not the last element in the input string. New approach uses a
  different approach to the problem.

 - Update tests for JDK 9 [#394]

 - Close buffered reader correctly in zone info compiler [#396]

 - Handle locale correctly zone info compiler [#397]
```
tlrx added a commit to elastic/elasticsearch that referenced this pull request Nov 10, 2016
This commit updates JodaTime to version 2.9.5 that contain a fix for a bug when parsing time zones (see JodaOrg/joda-time#332, JodaOrg/joda-time#386 and JodaOrg/joda-time#373).

It also remove the joda-convert dependency that seems to be unused.

closes #20911

Here is the changelog for 2.9.5:
```
Changes in 2.9.5
----------------
 - Add Norwegian period translations [#378]

 - Add Duration.dividedBy(long,RoundingMode) [#69, #379]

 - DateTimeZone data updated to version 2016i

 - Fixed bug where clock read twice when comparing two nulls in DateTimeComparator [#404]

 - Fixed minor issues with historic time-zone data [#373]

 - Fix bug in time-zone binary search [#332, #386]
  The fix in v2.9.2 caused problems when the time-zone being parsed
  was not the last element in the input string. New approach uses a
  different approach to the problem.

 - Update tests for JDK 9 [#394]

 - Close buffered reader correctly in zone info compiler [#396]

 - Handle locale correctly zone info compiler [#397]
```

(cherry picked from commit 2e53190)
tlrx added a commit to elastic/elasticsearch that referenced this pull request Nov 10, 2016
This commit updates JodaTime to version 2.9.5 that contain a fix for a bug when parsing time zones (see JodaOrg/joda-time#332, JodaOrg/joda-time#386 and JodaOrg/joda-time#373).

It also remove the joda-convert dependency that seems to be unused.

closes #20911

Here is the changelog for 2.9.5:
```
Changes in 2.9.5
----------------
 - Add Norwegian period translations [#378]

 - Add Duration.dividedBy(long,RoundingMode) [#69, #379]

 - DateTimeZone data updated to version 2016i

 - Fixed bug where clock read twice when comparing two nulls in DateTimeComparator [#404]

 - Fixed minor issues with historic time-zone data [#373]

 - Fix bug in time-zone binary search [#332, #386]
  The fix in v2.9.2 caused problems when the time-zone being parsed
  was not the last element in the input string. New approach uses a
  different approach to the problem.

 - Update tests for JDK 9 [#394]

 - Close buffered reader correctly in zone info compiler [#396]

 - Handle locale correctly zone info compiler [#397]
```

(cherry picked from commit 2e53190)
tlrx added a commit to tlrx/elasticsearch that referenced this pull request Nov 14, 2016
This commit updates JodaTime to version 2.9.5 that contain a fix for a bug when parsing time zones (see JodaOrg/joda-time#332, JodaOrg/joda-time#386 and JodaOrg/joda-time#373).

It also remove the joda-convert dependency that seems to be unused.
tlrx added a commit to elastic/elasticsearch that referenced this pull request Nov 15, 2016
This commit updates JodaTime to version 2.9.5 that contain a fix for a bug when parsing time zones (see JodaOrg/joda-time#332, JodaOrg/joda-time#386 and JodaOrg/joda-time#373).

It also remove the joda-convert dependency that seems to be unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants