json-rpc: return "lastmodified" in database datetime format (fixes #14836)