Fix a validation warning

I fix a validation warning if Date objects are used in the method
signature of actions.