     {webapp_client} = require('./webapp_client')
 
     if prom_client.enabled
-        prom_dir_listing_start = new Date()
+        prom_dir_listing_start = misc.server_time()
         prom_labels = {public: false}
 
     if opts.group in ['owner', 'collaborator', 'admin']

            project_id : @project_id
        if not id
            # new log entry
            id             = misc.uuid()
            obj.time       = new Date()
        obj.id = id
        require('./webapp_client').webapp_client.query
            query : {project_log : obj}

            #console.log opts.path, 'get_directory_listing.success or timeout', err
            if prom_client.enabled
                prom_labels.err = !!err
                prom_get_dir_listing_h?.observe(prom_labels, (misc.server_time() - prom_dir_listing_start) / 1000)

            opts.cb(err ? listing_err, listing)
            if time0 and state != 'running' and not err
