I recently started having the following error from time to time (joplin-server 3.7.1 macos 26.5.2). I believe joplin server is not to blame here, macos is, for letting a time drift happen.
The error:
Error: The device time drift is -2940ms (Max allowed: 2000ms) - cannot continue as it could cause data loss and conflicts on the sync clients. You may increase env var MAX_TIME_DRIFT to pass the check, or set to 0 to disabled the check.
The instant fix:
sudo sntp -sS time.apple.com