[PR #1327] [MERGED] feat(bar): added timezone to time widget #1325

Closed
opened 2026-01-05 14:54:53 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/LGUG2Z/komorebi/pull/1327
Author: @CtByte
Created: 3/7/2025
Status: Merged
Merged: 3/8/2025
Merged by: @LGUG2Z

Base: masterHead: timezone


📝 Commits (1)

  • 7e62ff4 feat(bar): added timezone to time and date widgets

📊 Changes

6 files changed (+165 additions, -8 deletions)

View changed files

📝 Cargo.lock (+75 -0)
📝 Cargo.toml (+1 -0)
📝 komorebi-bar/Cargo.toml (+1 -0)
📝 komorebi-bar/src/date.rs (+32 -3)
📝 komorebi-bar/src/time.rs (+32 -5)
📝 schema.bar.json (+24 -0)

📄 Description

This commit adds a new setting on the time and date widgets to set the timezone.

In case the timezone is invalid, the time is replaced with an error message.

image

Use a custom format to display additional information.

image

    {
      "Time": {
        "enable": true,
        "format": { "Custom": "%T %Z (Tokyo)" },
        "timezone": "Asia/Tokyo"
      }
    }

image

    {
      "Date": {
        "enable": true,
        "format": { "Custom": "%H:%M %e %b %Z (Tokyo)" },
        "timezone": "Asia/Tokyo"
      }
    }

Closes: #1312


🔄 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/LGUG2Z/komorebi/pull/1327 **Author:** [@CtByte](https://github.com/CtByte) **Created:** 3/7/2025 **Status:** ✅ Merged **Merged:** 3/8/2025 **Merged by:** [@LGUG2Z](https://github.com/LGUG2Z) **Base:** `master` ← **Head:** `timezone` --- ### 📝 Commits (1) - [`7e62ff4`](https://github.com/LGUG2Z/komorebi/commit/7e62ff423b914ae8ab136bd8f3d156647ba27736) feat(bar): added timezone to time and date widgets ### 📊 Changes **6 files changed** (+165 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+75 -0) 📝 `Cargo.toml` (+1 -0) 📝 `komorebi-bar/Cargo.toml` (+1 -0) 📝 `komorebi-bar/src/date.rs` (+32 -3) 📝 `komorebi-bar/src/time.rs` (+32 -5) 📝 `schema.bar.json` (+24 -0) </details> ### 📄 Description This commit adds a new setting on the time and date widgets to set the timezone. In case the timezone is invalid, the time is replaced with an error message. ![image](https://github.com/user-attachments/assets/6f769fce-0e9f-43c5-a8ef-ae862ca40293) Use a custom format to display additional information. ![image](https://github.com/user-attachments/assets/55c8e101-07bd-4ed2-987d-eaa600505e4a) ```json { "Time": { "enable": true, "format": { "Custom": "%T %Z (Tokyo)" }, "timezone": "Asia/Tokyo" } } ``` ![image](https://github.com/user-attachments/assets/a9cda0f5-eedd-4606-a8bb-2248e50cced1) ```json { "Date": { "enable": true, "format": { "Custom": "%H:%M %e %b %Z (Tokyo)" }, "timezone": "Asia/Tokyo" } } ``` Closes: #1312 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-01-05 14:54:53 +01:00
adam closed this issue 2026-01-05 14:54:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#1325