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

Time zone in program does not correspond to local time #3501

Closed
ghost opened this issue Mar 11, 2019 · 4 comments
Closed

Time zone in program does not correspond to local time #3501

ghost opened this issue Mar 11, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 11, 2019

Hi, I use sniffer "bettercap". When I run this program on a PC (Ubuntu or Kali) everything is fine, but in termux this program display the wrong time of events. My time zone is UTC+3 but this program display Greenwich mean time in termux. The console itself displays the time correctly. Also, calling 'date' is OK.
export TZ=Europe/Minsk && sudo bettercap OR export TZ=$(getprop persist.sys.timezone) && sudo bettercap also does not help, although TZ is installed correctly.

P. S: I compiled bettercap locally in termux. Here are my commands:
pkg install git golang libpcap-dev libusb-dev pkg-config
export PKG_CONFIG=$PREFIX/bin/pkg-config && go get github.com/bettercap/bettercap
cd ~/go/bin && mv bettercap $PREFIX/bin && chmod 0700 $PREFIX/bin/bettercap

@ghost ghost changed the title Time zone in programs does not correspond to local time Time zone in program does not correspond to local time Mar 11, 2019
@ghost
Copy link

ghost commented Mar 11, 2019

Related to #2622 and golang/go#20455.

@ghost ghost closed this as completed Mar 11, 2019
@ghost
Copy link
Author

ghost commented Mar 11, 2019

I use go1.12 and the problem is still not solved?

@ghost
Copy link

ghost commented Mar 11, 2019

golang/go#20455 still open, so it is not solved.

@ghost
Copy link
Author

ghost commented Mar 11, 2019

That's too bad....

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants