[
https://issues.apache.org/jira/browse/ASTERIXDB-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Till Westmann updated ASTERIXDB-1430:
-------------------------------------
Labels: starter (was: )
> Unexpected behavior in datetime constructor
> -------------------------------------------
>
> Key: ASTERIXDB-1430
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1430
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: Functions - AQL
> Reporter: Murtadha Hubail
> Labels: starter
>
> I used the function adjust-datetime-for-timezone(datetime, zone), which
> returns string type, to adjust the current datetime, then I wanted to use the
> returned value as datetime type.
> When I tried the following:
> {noformat}
> let $adjustedDatetime := adjust-datetime-for-timezone(current-datetime(),
> "-10:00")
> return datetime($adjustedDatetime)
> {noformat}
> The returned datetime value lost the adjustment.
> I think the datetime constructor should either respect the adjustment or
> throw an invalid format exception.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)