Add fix and test for alternate datatypes

This fixes a bug where the trigger was set to a date-time instead of a duration and would not be parsed correctly.