bug fix of eventchannel timestamp

Think this is the issue with identified in #206.  The function returned a pointer to local variable result would be undefined.