Skip to content
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

[BUG] Timezone BST not working as expected #545

Closed
ionutz89 opened this issue Mar 29, 2021 · 5 comments
Closed

[BUG] Timezone BST not working as expected #545

ionutz89 opened this issue Mar 29, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@ionutz89
Copy link

ionutz89 commented Mar 29, 2021

Describe the bug
It seems the cronjob does not work properly with the BST timezone.

To Reproduce
Steps to reproduce the behaviour:
I tried to hardcode in docker container timezone and in php-local.ini:

#cat /config/php/php-local.ini
date.timezone = Europe/London
# date
Mon Mar 29 20:24:36 BST 2021

Unless is somewhere else that I need to change, I am not sure what else to troubleshoot.
I am running on a Docker container on Ubuntu 20.04 on RPi 4 using latest version of Speedtest-Tracker 1.10.4

@ionutz89 ionutz89 added the bug Something isn't working label Mar 29, 2021
@ProjectVRD
Copy link

Describe the bug
It seems the cronjob does not work properly with the BST timezone.

Out of curiosity do all scheduled speedtests fail?

This is the issue I have and I am using the BST timezone. Manual speedtests seem to be fine.

@henrywhitaker3
Copy link
Owner

Will sort out BST for the schedule this weekend.

This shouldn't affect tests passing/failing, just when they run. There anything in the docker logs?

@ionutz89
Copy link
Author

ionutz89 commented Mar 31, 2021

Out of curiosity do all scheduled speedtests fail?

All tests are working fine.

@ionutz89
Copy link
Author

Will sort out BST for the schedule this weekend.

This shouldn't affect tests passing/failing, just when they run. There anything in the docker logs?

From inside docker container on /config/log/speedtest/cron.log

Running scheduled command: '/usr/bin/php7' 'artisan' speedtest:clear-sessions > '/dev/null' 2>&1
Running scheduled command: '/usr/bin/php7' 'artisan' speedtest:clear-sessions > '/dev/null' 2>&1
Running scheduled command: '/usr/bin/php7' 'artisan' speedtest:clear-sessions > '/dev/null' 2>&1
Running scheduled command: '/usr/bin/php7' 'artisan' speedtest:clear-sessions > '/dev/null' 2>&1

Or from /config/log/speedtest/queue.log:

[2021-03-31 15:15:20][558] Processed:  App\Jobs\SpeedtestJob
[2021-03-31 18:15:01][559] Processing: App\Jobs\SpeedtestJob
[2021-03-31 18:15:18][559] Processed:  App\Jobs\SpeedtestJob

On docker logs container is only from docker startup:

Clearing old jobs from queue
chown: changing ownership of '/config/php/php-local.ini': Read-only file system
[cont-init.d] 50-speedtest: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

@ionutz89 ionutz89 changed the title [BUG] Timezone not working as expected [BUG] Timezone BST not working as expected Mar 31, 2021
henrywhitaker3 added a commit that referenced this issue Apr 10, 2021
@henrywhitaker3
Copy link
Owner

Just merged this, try the dev docker image. It will need you to add the env var TZ=Europe/London to get BST working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants