Hi Guillermo

Please check my screenshot from Microsoft Oulook calendar, you see that the 1. 
Januar is still in week 52. In java it seems that this behavior is different, 
the 1. January has been counted as number 1. So in outlook week 1 is in java 
week 2. Hope this helps.

Cheers Josef

[Background pattern  Description automatically generated with low confidence]

From: Guillermo Muñoz Salgado <[email protected]>
Reply to: "[email protected]" <[email protected]>
Date: Thursday, 28 April 2022 at 13:59
To: "[email protected]" <[email protected]>
Subject: Week of year calculation

Hi all,

We are working with a three nodes cluster running Apache NiFi 1.15.3 with java 
openjdk version "1.8.0_292".

We need to calculate the current week of year with the next expression:

${now():format("w",'Europe/Madrid')}

We are getting as the result that today we are in the week number 18, and it is 
not correct, we are in week 17. ¿Are we doing something wrong or is it an issue 
or a well known bug?

Thanks!!
--
Guillermo Muñoz Salgado

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to