Project

Profile

Help

Support #5608

closed

Strange behavior when trying to get the current date.

Added by fouad MOUTASSIM over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT 3.0 packages
Sprint/Milestone:
Start date:
2022-07-15
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
10
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Java

Description

Hello,

we have a strange behavior when trying to get the current date using an XSLT map(The used function is : current-date()). we get a random result. Sometimes we get the correct date and sometimes we get the current date minus days.

Exp : <xsl:value-of select="concat(format-date(current-date(), "[Y0001]-[M01]-[D01]")," 08:45")"/>

Result 1 [OK] >> 2022-07-15 08:45

Result 2 [KO] >> 2022-07-12 08:45

Could you please provide us an explanation for this behavior.

bellow the used configuration :

Saxon : Saxon-EE-10.4-1 Java : version 11 OS : openjdk-11

Thank you in advance.


Files

currentDateIssue.xslt (74.4 KB) currentDateIssue.xslt Anis MILED, 2022-07-21 17:03
fwkMappingIn.xml (767 KB) fwkMappingIn.xml Anis MILED, 2022-07-21 17:35
csv-xsl-package.xslt (5.45 KB) csv-xsl-package.xslt fouad MOUTASSIM, 2022-07-22 15:37
Xslt30CacheServiceImpl.java (3.22 KB) Xslt30CacheServiceImpl.java fouad MOUTASSIM, 2022-07-22 15:37
Xslt30TransfoServiceImpl.java (5.31 KB) Xslt30TransfoServiceImpl.java fouad MOUTASSIM, 2022-07-22 15:37

Please register to edit this issue

Also available in: Atom PDF