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

    {webapp_client} = require('./webapp_client')

    if prom_client.enabled
        prom_dir_listing_start = new Date()
        prom_labels = {public: false}

    if opts.group in ['owner', 'collaborator', 'admin']

        {id, start} = data
        # do not allow recording the time more than once, which would be weird.
        delete @_log_open_time[path]
        @log({time: misc.server_time() - start}, id)

    # Save the given file in this project (if it is open) to disk.
    save_file: (opts) =>
