Probably this is a built-in-database (HSQLDB) only issue. For PostgreSQL, this constraint runs fine. However, you can also create a microflow variable, set the value to the current month and use this variable in the XPath constraint.
I believe it requires an actual DateTime attribute.