Set timezone utc.

This commit is contained in:
Sergiotarxz 2023-06-13 18:50:36 +02:00
parent 75466d7eac
commit 3f4d9aea0d

View File

@ -41,8 +41,19 @@ sub Schema ($class) {
}
# Undef is perfectly fine for username and password.
$schema =
$class->connect( $dsn, $user, $password, { auto_savepoint => 1 } );
$schema = $class->connect(
$dsn, $user,
$password,
{
auto_savepoint => 1,
Callbacks => {
connected => sub {
shift->do('set timezone = UTC');
return;
}
}
}
);
}
return $schema;
}