Codeception / Codeception/module-db

Add 'timezone' config support for Db model

Open
#16 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
23
Forks
31
PR merge metrics
No merged PRs in 30d

Description

#### 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.
> Provide console output if related. Use `-vvv` mode for more details.

```bash
# paste output here
```
> Provide test source code if related

```php
// paste test
```
### Details

* Codeception version:
* PHP Version:
* Operating System:
* Installation type: Phar || Composer
* List of installed packages (`composer show`)
* Suite configuration:

```yml
# paste suite config here
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Db model's MySQL connection setup and the tests that currently depend on database timezone configuration. Determine how suite configuration is passed to the model, then define the timezone option and verify that tests can select a specific timezone without relying on the database's global configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.