corrected the external uid apr_time_now()