Converter Tag - Filename validates %_length% before applying other functions around


#1

Converter Tag - Filename validates part of format string before applying other functions around.
Please see attached picture ...

DD.20111123.2102.CET


$mid(%_file_mod_datetime%,5,4)
#2

Normal validation removes the invalid characters from the resulting filename (except if $validate() is used and a specific replacement character is provided).

However, there is a hard-coded replacement from : to _ for the %_length% field, because simply omitting the : character would result in times like 0929 (and further support questions). In this case $trimLeft(%_length%,'09_') would produce the desired output.

I'd say it's intended behavior and I'm moving it to #bug-reports:no-bugs