SP-1394:  Backport of PDI-12560 - HTTP step add date and time to file name options doesnot work properly (5.1)

There are fix and unit test.