-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add 'timezone' config support for Db model #16
Comments
Try to add timezone to For example "headers" of mysqldump contain someone like this (see last line of example) -- MySQL dump 10.13 Distrib 8.0.3-rc, for Linux (x86_64)
...
-- ------------------------------------------------------
-- Server version 8.0.3-rc-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
SET NAMES utf8mb4 ;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
|
@bscheshirwork Sounds a good solution , but I think timezone is an important property in a database connection , Db model should have the ability to control it. |
So... Example for PDO connect, please? (without test case) |
For now I add the method below in my Actor class,And call this method before each test
my Db Model config like this
|
If you think it's important you can send Pull Request |
What are you trying to achieve?
Specific timezone when use Db Model connect to mysql , then the test logic won't rely on database config.
What do you get instead?
Can't achieve this for now.
# paste output here
// paste test
Details
composer show
)# paste suite config here
The text was updated successfully, but these errors were encountered: