OpenSearch/x-pack
Marios Trivyzas 363e994171
SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) (#56182)
Previously, when the timezone was missing from the datetime string
and the pattern, UTC was used, instead of the session defined timezone.
Moreover, if a timezone was included in the datetime string and the
pattern then this timezone was used. To have a consistent behaviour
the resulting datetime will always be converted to the session defined
timezone, e.g.:
```
SELECT DATETIME_PARSE('2020-05-04 10:20:30.123 +02:00', 'HH:mm:ss dd/MM/uuuu VV') AS datetime;
```
with `time_zone` set to `-03:00` will result in
```
2020-05-04T05:20:40.123-03:00
```

Follows: #54960
(cherry picked from commit 8810ed03a209cc8fe1bad309a81e85b56a39da27)
2020-05-05 12:08:39 +02:00
..
dev-tools
docs [DOCS] Adds documentation for secondary authorization headers (#55365) (#55986) 2020-04-29 16:29:38 -07:00
license-tools Support "enterprise" license types (#49474) 2019-12-12 14:37:44 +11:00
plugin SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) (#56182) 2020-05-05 12:08:39 +02:00
qa [TEST] Allow more warnings about multiple template matches (#56085) 2020-05-03 21:07:51 +01:00
snapshot-tool Remove guava from transitive compile classpath (#54309) (#54695) 2020-04-07 23:20:17 -07:00
test Upgrade feature aware check usage of ASM to 7.3.1 (#54577) 2020-04-18 10:49:57 -04:00
transport-client [7.x] Re-add origin url information to publish POM files (#55173) 2020-04-14 13:24:15 -07:00
NOTICE.txt
README.md
build.gradle [7.x] Update opensaml dependency (#44972) (#49512) 2019-11-29 00:17:16 +02:00

README.md

Elastic License Functionality

This directory tree contains files subject to the Elastic License. The files subject to the Elastic License are grouped in this directory to clearly separate them from files licensed under the Apache License 2.0.