Update Rule template func set datetime and template group for the rule p...

...age