adjust-date-to-timezone
Adjusts an xs:date value to the implicit time zone in the evaluation context (the system's time zone).

Languages
XQuery, XSLT 2.0, XSLT 3.0.
Parameters
Name | Type | Description |
---|---|---|
date | xs:date | The input value of type xs:date. |
Example
The following mapping constructs an xs:date from a string and supplies it as argument to the adjust-date-to-timezone function.

XSLT 2.0 mapping
If the mapping runs on a computer where the system time zone is +02:00, the function adjusts the date value to include the system's time zone. Consequently, the mapping output is 2020-04-30+02:00.