1Panel-dev / 1Panel-dev/1Panel

[Bug] SSH login log displays incorrect timezone

Open
#13,860 0 comments 0 reactions 1 assignee View on GitHub

@wanghe-fit2cloud is already working on this.

Since Sep 19, 2026.

Dominant language
Go
Stars
37k
Forks
3.4k
Avg merge
9h 16m
Merged PRs (30d)
105

Description

Contact Information

No response

1Panel Version

v2.3.1

Problem Description

The SSH login log in the 1Panel interface displays an incorrect time.

The server timezone is Asia/Taipei (UTC+08:00). The terminal, Fail2ban logs, and auth.log show the correct local time, but the SSH login log in 1Panel is 6 hours behind.

For example:

  • Actual server time: 2026-09-19 10:44
  • Time shown in 1Panel SSH log: approximately 2026-09-19 04:44

This may be caused by an incorrect timezone conversion in the backend API or frontend.

Steps to Reproduce
  1. Set the server timezone to Asia/Taipei (UTC+08:00).
  2. Log in to the server through SSH.
  3. Open 1Panel.
  4. Go to Logs -> SSH Logs.
  5. Compare the login time with the server time or /var/log/auth.log.
  6. The time shown in 1Panel is 6 hours behind.
The expected correct result

The SSH login log should display the correct time according to the server timezone, Asia/Taipei (UTC+08:00).

Related log output
Local time: Sat 2026-09-19 10:44:34 CST
Time zone: Asia/Taipei (CST, +0800)
Additional Information

Fail2ban logs and the terminal display the correct local time. Only the SSH login log in the 1Panel web interface displays the incorrect time.

Changing the display timezone to Europe/Berlin summer time makes the displayed time change, which suggests that the panel is applying an incorrect timezone conversion.

Image Image Image Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.