We use the "Send a custom email" function within a workflow transition to send an email that contains a date-value from a custom field. Given that the field contains a 2015-date later than the 26. december the function returns a 2016-date.
image2015-10-28 8:52:8.png
...results in...
image2015-10-28 8:54:59.png
The date is written by using the following function:
<< issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("Beginn")).format("dd.MM.Y") %>
Is there a trick or is this a bug?
Hi
Use yyyy not Y for the year.See https://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.