fix event onTimeChange
fix for onTimeChange event in directive