What version of Origam are you using: 2025.10.2.4117
I was trying to use a tranformation with AS:DifferenceMinutes() having string arguments as dates with timezone specified, e.g. ‘1970-01-01T01:30:00+0200’
I was expecting it was working without any problems
Instead I’ve got an exception
---> System.Exception: The string '1970-01-01T01:30:00+0200' is not a valid AllXsd value.
---> System.Exception: Transformation result invalid.
---> System.Xml.Xsl.XslTransformException: An error occurred during a call to extension function 'DifferenceInMinutes'. See InnerException for a complete description of the error. ---> System.FormatException: periodStartDate is not in a valid format
---> System.FormatException: The string '1970-01-01T01:30:00+0200' is not a valid AllXsd value.
It used to work in 2024.5. To overcome the problem, I had to wrap the arguments of AS:DifferenceInMinutes by date:date-time() function, which shifts the date to UTC and then it print it out without time-zone info. Then it started to work.
If it is a feature, it should be mentioned in the breaking changes. It requires refactoring.
Documentation of AS:DifferenceInMinutes()