Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formatDate timezones not supported #852

Open
mstevan opened this issue Dec 29, 2020 · 0 comments
Open

formatDate timezones not supported #852

mstevan opened this issue Dec 29, 2020 · 0 comments
Labels

Comments

@mstevan
Copy link
Contributor

mstevan commented Dec 29, 2020

@mstevan
test-set: format-date.xml, format-dateTime.xml, format-time.xml
test-cases: format-date-014 to format-date-027, format-dateTime-014 to format-dateTime-025e, format-time-014 to format-time-018

@team
Seems that timezones are not supported at all, please investigate

Input:
let $t := date("1985-03-01Z") return string-join( for $z in -28 to +28 return format-date(adjust-date-to-timezone($t,
         $z*dayTimeDuration("PT30M")), "[Z]"), " ")

Output:
⚠️ ️️here was an error.
 
Code: [FOFD1350] (this code can be looked up in the documentation and specifications).
 
Location information: file:/Users/mstevan/Documents/:LINE:1:COLUMN:78:
 
"[Z]": a component specifier refers to components that are not available in the date type

Expected output:
-14:00 -13:30 -13:00 -12:30 -12:00 -11:30 -11:00 -10:30 -10:00
-09:30 -09:00 -08:30 -08:00 -07:30 -07:00 -06:30 -06:00 -05:30 -05:00 -04:30
-04:00 -03:30 -03:00 -02:30 -02:00 -01:30 -01:00 -00:30 +00:00 +00:30 +01:00
+01:30 +02:00 +02:30 +03:00 +03:30 +04:00 +04:30 +05:00 +05:30 +06:00 +06:30
+07:00 +07:30 +08:00 +08:30 +09:00 +09:30 +10:00 +10:30 +11:00 +11:30 +12:00
+12:30 +13:00 +13:30 +14:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants