Bug: Using year in label templates
Using {{#YEAR}}{{inventory.propagationDate}}{{/YEAR}}
in 2024.5.0 results in
{
"cause1":"java.lang.NumberFormatException: For input string: "2024-09-05 00:00:00.0"",
"servlet":"dispatcher",
"cause0":"org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NumberFormatException: For input string: "2024-09-05 00:00:00.0"",
"message":"Request method 'POST' not supported",
"url":"/api/v2/i/generate-labels",
"status":"405"
}
@ahrybeniuk Please add a unit test.
Edited by Matija Obreza