OpenSearch/docs/reference/sql/endpoints
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
..
client-apps [DOCS] Clean up links from SQL client app pages. (#52442) 2020-02-18 12:42:20 -08:00
odbc ODBC: Document the new VarcharLimit and EarlyExecution params (#54632) 2020-04-03 14:46:39 +02:00
cli.asciidoc SQL: specify command to run the CLI on a remote machine without Elasticsearch (#52626) 2020-02-21 13:29:58 +02:00
index.asciidoc Move ODBC documentation to `elasticsearch` repository (#36955) 2018-12-27 11:55:20 +02:00
jdbc.asciidoc SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) (#56182) 2020-05-05 12:08:39 +02:00
odbc.asciidoc SQL: ODBC: document extra connection string parameters (#40476) 2019-03-27 14:20:23 +01:00
rest.asciidoc SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) (#56182) 2020-05-05 12:08:39 +02:00
translate.asciidoc [DOCS] Replace "// TESTRESPONSE" magic comments with "[source,console-result] (#46295) (#46418) 2019-09-06 09:22:08 -04:00