Closed fizsef closed 3 months ago
Hello, @fizsef. Maybe this will help you https://stackoverflow.com/questions/54035376/why-running-golangs-time-now-at-openwrt-always-get-utc-time
@fizsef
Europe-Moscow time zone is selected in the system
Please make sure that this is the case for the user which launches the AdGuardHome
process as well.
@fizsef
Europe-Moscow time zone is selected in the system
Please make sure that this is the case for the user which launches the
AdGuardHome
process as well.
Sorry, but how to do it, how to check?
I do not know the peculiarities of the OpenWrt port, but generally you need to find out the system user of the process running AdGuardHome
and see if it is set for them. If you can modify the service environment, you can add something like TZ=Europe/Moscow
to it.
There seems to be a bug in the log. When you enable local_time
and update the list, the new record changes back to UTC time.
Changing the lokal_time option does not affect anything for me. What is enabled, what is disabled, the UTC time is still in the log, minus 3 hours from the time set in OpenWRT. It is not clear at all what this option affects.
@Sakura-Luna, please make sure that you're stopping AGH before making any changes to the configuration file. Otherwise the changes are overwritten.
@fizsef, have you configured the environment as proposed above?
Prerequisites
[X] I have checked the Wiki and Discussions and found no answer
[X] I have searched other issues and found no duplicates
[X] I want to report a bug and not ask a question or ask for help
[X] I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Linux, ARM64
Installation
Custom package (OpenWrt, HomeAssistant, etc; please mention in the description)
Setup
On one machine
AdGuard Home version
107.40
Action
Expected result
I expect to see the correct time selected in the system
Actual result
The time in the log file is incorrect, less than three hours.
Additional information and/or screenshots
OpenWRT 23.05, Xiaomi AX6s router. The Europe-Moscow time zone is selected in the system, the zoneinfo-all package is installed.