namhnguyen / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Platform-specific issue with timezone parsing #795

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use OpenJDK 1.7.0_65 to run AsterixDB
2. Run test case 'parse_01.3.query.aql' in the ExecutionTests, or simply put 
"parse-time("6:30:40.948 pm PST", "h:mm:ss.nnn a z")" as a query on an instance 
running under OpenJDK

What is the expected output? What do you see instead?

The test fails where it should succeed, with error "parse-date: Failed to match 
with any given format string"

It looks like the source of the bug is inside DateTimeFormatUtils. In this 
particular circumstance, performing a search for 'PST' in the time zone list 
can fail even when it looks to be present in the list from a debugger.

Original issue reported on code.google.com by ima...@uci.edu on 14 Aug 2014 at 12:07

GoogleCodeExporter commented 9 years ago
Fixed in d38122aa6546d7c1400516e41886814497712920

Original comment by ima...@uci.edu on 4 Sep 2014 at 12:49