fixed time formatting & file op error code check