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 difference - how to sync docker time ? no timezone parameter for this project ? #157

Open
tarocjsu opened this issue Jan 3, 2024 · 6 comments

Comments

@tarocjsu
Copy link

tarocjsu commented Jan 3, 2024

The time difference between this client and the backend server is beyond operational limit. Please try reload the page, and if the problem persisted, consider to adjust your local time so both the client and the server are running at same date time

@tarocjsu
Copy link
Author

tarocjsu commented Jan 3, 2024

image

@tarocjsu
Copy link
Author

tarocjsu commented Jan 3, 2024

I am through docker/container, and the server date and time I am sure same as my Windows client.

@nirui
Copy link
Owner

nirui commented Jan 3, 2024

Hi.

Can you check the log? docker logs -f <container name> and then try open/refresh Sshwifty page. See if the time logged is the same as the client time (both needs to be converted to UTC).

Timezone should not effect this since the related verification is done against UTC time.

You may also try to access the demo at https://sshwifty-demo.nirui.org, see if you will encounter the same error. If the same error indeed occurred, then maybe it's the client time that's unsynced.

@jiky-hunter
Copy link

请问客户端与服务器的时间差最大是多少呢,以及客户端如何同步时间

@tarocjsu
Copy link
Author

I am already quit and leave this program or project, not care anymore....

@nirui
Copy link
Owner

nirui commented Feb 23, 2024

@jiky-hunter 你好,时间差是30秒。你需要确保客户端和服务器端的时间差在30秒之内,否则就会出现上述错误信息。另外,Sshwifty只是要求服务器和客户端都具有准确的时间信息,所以只要两端的时间与全球时间一致即可。

对于Linux系统,取决于系统的配置,你可以:

对于Windows系统,你可以右键点击任务栏上的时间,然后在弹出的窗口中选择设置,寻找时间同步设置并点击“同步”即可。

@tarocjsu Sorry to see that. The original issue that you posted is unlikely a problem with Sshwifty, but instead caused by environmental factors at the user end. However, I do hope that you'll discover another project which better suit your needs.

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

No branches or pull requests

3 participants