Skip to content

Solução para erro com TimeZone #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ public class ConexaoBD {
private final String nomeHost = "localhost";
private final String portaBD = "3306";
private final String nomeBD = "bd_empresa"; //colocar o nome do seu banco de dados
private final String tempo = "?useTimezone=true&serverTimezone=UTC";
private final String nomeUsuario = "root"; //colocar o nome de seu usuario
private final String senha = ""; //colocar a sua senha
private String url = null;

public ConexaoBD() {
//"jdbc:mysql://localhost:3306/bd_empresa";
url = prefixoBD + nomeHost + ":" + portaBD + "/" + nomeBD;
url = prefixoBD + nomeHost + ":" + portaBD + "/" + nomeBD + tempo;
}

public Connection getConexao() {
Expand Down