volumes:
- ./erp24:/www
- ./docker/nginx/conf:/etc/nginx
+ environment:
+ TZ: Europe/Moscow
nginx_api1-yii_erp24:
build: ./docker/nginx_api1
restart: always
volumes:
- ./erp24:/www
- ./docker/nginx_api1/conf:/etc/nginx
+ environment:
+ TZ: Europe/Moscow
nginx_api2-yii_erp24:
build: ./docker/nginx_api2
restart: always
volumes:
- ./erp24:/www
- ./docker/nginx_api2/conf:/etc/nginx
+ environment:
+ TZ: Europe/Moscow
nginx_api3-yii_erp24:
build: ./docker/nginx_api3
restart: always
volumes:
- ./erp24:/www
- ./docker/nginx_api3/conf:/etc/nginx
+ environment:
+ TZ: Europe/Moscow
php-yii_erp24:
build: ./docker/php
restart: always
ports:
- 127.0.0.1:8091:80
environment:
- - PMA_ARBITRARY=1
+ PMA_ARBITRARY: 1
+ TZ: Europe/Moscow
volumes:
#php loads files alphabetically, add "zz-" to override settings
- ./docker/phpmyadmin/conf/zz-phpmyadmin.ini:/usr/local/etc/php/conf.d/zz-phpmyadmin.ini
POSTGRES_DB=erp24
POSTGRES_HOSTNAME=db-pgsql-yii_erp24
POSTGRES_PORT=5432
-POSTGRES_SCHEMA=erp24
\ No newline at end of file
+POSTGRES_SCHEMA=erp24
+PGTZ=Europe/Moscow
\ No newline at end of file
foreach ($users as $user) {
/** @var $user Users */
$ub = UsersBonus::find()->where(['phone' => $user->phone])
- ->andWhere(['between', 'date',
- date('Y-m-d H:i:00', strtotime('-3 hour', strtotime($user->date_first_sale))),
- date('Y-m-d H:i:59', strtotime($user->date_first_sale))])->all();
+ ->andWhere(['date' => $user->date_first_sale])->all();
$has20 = false;
$has10 = null;
foreach ($ub as $usersBonus) {