-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timezone issue in feat info #979
Comments
Worth noting that example 1 will work fine in OWS if you set the Example 2 I believe should be have been fixed in #958 (will be in next release) but I'll take another look. Also worth pointing out Issue #945 - which will give users another more flexible/general solution for this class of problem. |
ok, thanks, I will test out |
Pretty sure the remaining issues are due to a bug in the |
Hi all. I have updated my datacube-ows version to the latest version on docker hub (1.8.36.post25_g20e28f8) and I can confirm that the timezone issue which I was seeing in the Americas is now fixed. This now results in the "Filter by Location" feature in TerriaMap (which feeds off Thanks for the update! |
Description
This issue is partially described (and partially resolved) in the comments of #958, but in short:
data_available_for_dates
parameter in GetFeatureInfo responses can result in incorrect information.Steps to Reproduce
To reproduce this issue, the user must use a timezone with a negative adjustment to UTC and then:
In my testing, the GetCapabilities response is more "correct" than the GetFeatureInfo as explained below.
Two specific examples...
p.datetime = datetime(2018,4,26)
:2018-04-26 00:00:00Z
✅ (yes, this is technically incorrect but it is a common result when not providing a specific time)["2018-04-26 00:00:00+00","2018-04-26 00:00:00+00"]
✅2018-04-25
❌ (wrong but understandable given the initial 00:00:00Z)2018-04-25
❌ (wrong but understandable)2018-04-26 12:00:00Z
✅["2018-04-26 12:00:00+00","2018-04-26 12:00:00+00"]
✅2018-04-26
✅2018-04-25
❌❌ (wrong - this is the biggest issue)This issue is most obvious when adding data which has no specific time as in the first example because the timezone correction has an immediate impact. This can be partially resolved by the data administrator always thinking in UTC from the beginning and adding an adjusted time to all data in an ODC instance, but this is not always possible when indexing data from third parties (e.g. public STAC catalogs). In this case, the final error in the GetFeatureInfo response in example 2 above still causes significant issues.
The text was updated successfully, but these errors were encountered: