Project

Profile

Help

Bug #3464

closed

Incorrect results for saxon:timestamp() under JDK 8

Added by Michael Kay about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
Start date:
2017-10-02
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:

Description

Under JDK 8, the extension function saxon:timestamp() is implemented by calling java.time.Instant. On this path, the timezone calculation is incorrect. Saxon takes the GMT date/time and then labels it with the local timezone (the implicit timezone from the dynamic context) without actually adjusting the value to be in that timezone.

Please register to edit this issue

Also available in: Atom PDF