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

Log timestamp not match system timezone #1234

Closed
Mosney opened this issue Dec 5, 2019 · 12 comments
Closed

Log timestamp not match system timezone #1234

Mosney opened this issue Dec 5, 2019 · 12 comments

Comments

@Mosney
Copy link

Mosney commented Dec 5, 2019

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • [Y] I am running the latest version
  • [Y] I checked the documentation and found no answer
  • [Y] I checked to make sure that this issue has not already been filed

Issue Details

  • Version of AdGuard Home server:
    • 0.99.3
  • How did you setup DNS configuration:
    • Router
  • If it's a router or IoT, please write device model:
    • amd64 device
  • Operating system and version:
    • OpenWrt 19.07rc2

Expected Behavior

Log record local time (UTC+8) as like query log timestamp in WebUI

Actual Behavior

It looks like use UTC time and not localized

Screenshots

Screenshot:

image

Additional Information

@ameshkov
Copy link
Member

ameshkov commented Dec 6, 2019

@ArtemBaskal @IldarKamalov any idea?

@rufengsuixing
Copy link

rufengsuixing commented Dec 6, 2019

on my openwrt router R9.11.23 kernel 4.14.155 ,runtime log time is utc time,querylog time is the right local time,i make a env TZ=CST-8 but useless

@norikohxb
Copy link

I am in China the DNS query LOG time is different with my time zone.
so it is hard for me to get DNS history.

@norikohxb
Copy link

I guest this was becaused when you have to download the AD file
wget https://140.82.113.3/AdguardTeam/AdGuardHome/releases/download/v0.99.3/AdGuardHome_linux_amd64.tar.gz
you have to swith to your gateway to a router which has V2ray or SSR and then when installing ADG it will treat your computer as an USA time zone computer. so all your AdGuardHome time will be updated to USA time.
now how to change it back to Chinese time Zone ,or how to change time zone of ADG

@Mosney
Copy link
Author

Mosney commented Dec 7, 2019

I guest this was becaused when you have to download the AD file
wget https://140.82.113.3/AdguardTeam/AdGuardHome/releases/download/v0.99.3/AdGuardHome_linux_amd64.tar.gz
you have to swith to your gateway to a router which has V2ray or SSR and then when installing ADG it will treat your computer as an USA time zone computer. so all your AdGuardHome time will be updated to USA time.
now how to change it back to Chinese time Zone ,or how to change time zone of ADG

Any evidence? I think it no sense. Just a download and extract file.

@norikohxb
Copy link

because it use my VPS (v2ray server) to download .and to this computer all connection with non Chinese address all use VPS's USA ip. maybe when AdGuardHome installing it need to connect to some URL or IP to check and becuase it use v2ray USA ip to complete this task and then It think this software inernal time should be USA time.

@rufengsuixing
Copy link

no software get timezone from ip ,it make no sense

@norikohxb
Copy link

on how can i correct my log time. if my local time is 02:00 , then my AdGuardHome Log time is 10.00
(10.00-2.00=8.00) how to correct it .
i need a correct time in Log system.

@stale
Copy link

stale bot commented Feb 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 6, 2020
@stale stale bot closed this as completed Feb 13, 2020
@Mosney
Copy link
Author

Mosney commented Feb 13, 2020

So this issue has been resolved?

@norikohxb
Copy link

yes dear the mistake is casued by esxi system time problem
after change it's time. everything is ok now

@Mosney
Copy link
Author

Mosney commented Feb 13, 2020

Thx a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants