-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update time zone handling to handle GMT times (#429)
* Update time zone handling to handle GMT times * Use zoned date time * Correct the currentTime * Add tests * Make compatible with Android 16 * MainActivity cleanup * Fix test syntax * Fix tests part 2 * nit * Revert to previous toJson formatting * Test Darwin time zone (and use local time zone formatting) * Match iOS, ending wiht Z or -05:00 * Bump version * 3.20.0 to match iOS
- Loading branch information
Showing
8 changed files
with
294 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"meta": { | ||
"code": 200 | ||
}, | ||
"addresses": [ | ||
{ | ||
"formattedAddress": "5 Cavenagh Street, Darwin CBD, NT, 0800, AU", | ||
"addressLabel": "5 Cavenagh Street", | ||
"number": "5", | ||
"street": "Cavenagh Street", | ||
"dependentLocality": "Darwin CBD", | ||
"city": "Darwin", | ||
"county": "Darwin", | ||
"state": "Northern Territory", | ||
"stateCode": "NT", | ||
"postalCode": "0800", | ||
"countryCode": "AU", | ||
"country": "Australia", | ||
"layer": "address", | ||
"latitude": -12.463872, | ||
"longitude": 130.844064, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
130.844064, | ||
-12.463872 | ||
] | ||
}, | ||
"distance": 41.20331642776327, | ||
"countryFlag": "🇦🇺", | ||
"timeZone": { | ||
"id": "Australia/Darwin", | ||
"name": "Australian Central Standard Time", | ||
"code": "ACST", | ||
"currentTime": "2025-01-22T04:17:35+09:30", | ||
"utcOffset": 34200, | ||
"dstOffset": 0 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"meta": { | ||
"code": 200 | ||
}, | ||
"addresses": [ | ||
{ | ||
"formattedAddress": "60 Trafalgar Square, Strand, London, WC2N 5DS, UK", | ||
"addressLabel": "60 Trafalgar Square", | ||
"number": "60", | ||
"street": "Trafalgar Square", | ||
"dependentLocality": "Strand", | ||
"city": "London", | ||
"county": "London", | ||
"state": "England", | ||
"stateCode": "ENG", | ||
"postalCode": "WC2N 5DS", | ||
"countryCode": "GB", | ||
"country": "United Kingdom", | ||
"layer": "address", | ||
"latitude": 51.5072349, | ||
"longitude": -0.1284617, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-0.1284617, | ||
51.5072349 | ||
] | ||
}, | ||
"distance": 49.35395812723442, | ||
"countryFlag": "🇬🇧", | ||
"timeZone": { | ||
"id": "Europe/London", | ||
"name": "Greenwich Mean Time", | ||
"code": "GMT", | ||
"currentTime": "2025-01-21T17:22:19Z", | ||
"utcOffset": 0, | ||
"dstOffset": 0 | ||
} | ||
} | ||
] | ||
} |