[PR #3587] [MERGED] Fix: Incorrect time in xray logs #5461

Closed
opened 2026-10-31 20:47:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3587
Author: @fgsfds
Created: 11/8/2025
Status: ✅ Merged
Merged: 11/8/2025
Merged by: @MHSanaei

Base: main ← Head: xray_logs_timezone_fix


📝 Commits (2)

  • 6b44526 fixed timezone in xray logs
  • da71183 remove leading / at the address

📊 Changes

2 files changed (+7 additions, -5 deletions)

View changed files

📝 web/html/index.html (+3 -1)
📝 web/service/server.go (+4 -4)

📄 Description

What is the pull request?

Xray logs show incorrect times because your local timezone is added to an already time-zoned timestamp.

This PR updates the server to parse time as UTC, and the frontend will then apply your system timezone.

It also removes leading / at the addresses.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3587 **Author:** [@fgsfds](https://github.com/fgsfds) **Created:** 11/8/2025 **Status:** ✅ Merged **Merged:** 11/8/2025 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `xray_logs_timezone_fix` --- ### 📝 Commits (2) - [`6b44526`](https://github.com/MHSanaei/3x-ui/commit/6b44526acb2c08eb4625fd0e844a541ae0c8eee6) fixed timezone in xray logs - [`da71183`](https://github.com/MHSanaei/3x-ui/commit/da711837be505e4f39b8bac4b6985e3ad786b6f4) remove leading / at the address ### 📊 Changes **2 files changed** (+7 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `web/html/index.html` (+3 -1) 📝 `web/service/server.go` (+4 -4) </details> ### 📄 Description ## What is the pull request? Xray logs show incorrect times because your local timezone is added to an already time-zoned timestamp. This PR updates the server to parse time as UTC, and the frontend will then apply your system timezone. It also removes leading / at the addresses. ## Which part of the application is affected by the change? - [x] Frontend - [x] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:07 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5461
No description provided.