JS trigger local time for events