Skip to content

fix(wireguard): emit UTC log timestamps#47

Open
Rerowros wants to merge 1 commit intoPasarGuard:devfrom
Rerowros:fix/wireguard-utc-timestamps
Open

fix(wireguard): emit UTC log timestamps#47
Rerowros wants to merge 1 commit intoPasarGuard:devfrom
Rerowros:fix/wireguard-utc-timestamps

Conversation

@Rerowros
Copy link
Copy Markdown

@Rerowros Rerowros commented May 10, 2026

Summary

This pull request changes WireGuard log timestamps to use explicit UTC timestamps with a Z suffix.

The previous WireGuard log timestamp format used local time without timezone information. That made logs harder to compare with panel events, API events, and external monitoring systems.

WireGuard Logging

  • Changed WireGuard log timestamp formatting to UTC with an explicit timezone suffix in backend/wireguard/log.go.
  • Updated the lifecycle test expectation to match the new UTC timestamp format in backend/wireguard/wireguard_lifecycle_test.go.

Why This Is Better

Node logs are often compared with panel-side events when debugging traffic accounting, sync behavior, or node restarts. Local timestamps without timezone information make that comparison ambiguous.

Using UTC with Z makes ordering clear across machines, timezones, containers, and log collectors.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 10, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c9cdbd9c-4605-4471-ac7a-4984655ed802

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Successfully merging this pull request may close these issues.

1 participant