moved fn_convertTimeStamp method to commong