XMLQUERY FN:CURRENT-DATETIME() DOES NOT ALWAYS RETURN CORRECT TIMEZONE
Last updated on MARCH 07, 2016
Applies to:Oracle Database - Standard Edition - Version 188.8.131.52 to 184.108.40.206 [Release 11.2 to 12.1]
Information in this document applies to any platform.
The function to get current date/time in XMLQUERY is "fn:current-dateTime()". In a lot of cases, the timezone information is lost in the returned date/time. The most basic example of it is when there is a function call anywhere in the xmlquery function even when it has nothing to do with the date.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms