TimezoneBar is a minimal macOS menu bar world clock built with Swift and AppKit.
- Runs as a menu bar utility with no Dock icon
- Shows the current local time in the menu bar using either a digital text clock or a compact analog clock
- Displays local time plus preset world cities in the dropdown menu
- Shows each location's time zone identifier, UTC offset, and local date
- Refreshes automatically every second
- Includes a footer row with
Quiton the left andSettingson the right - Lets you control top-line date, weekday, clock style, blinking separators, and seconds from Settings
- Lets you choose the dropdown date format and whether the app launches at login
The app currently shows:
- Local time zone
- San Francisco
- New York
- London
- Berlin
- Shanghai
- Tokyo
- Sydney
You can edit the preset list in TimezoneBarApp/StatusBarController.swift.
- macOS 13 or later
- A recent Xcode version with Swift/AppKit support
- Open TimezoneBar.xcodeproj.
- Select the
TimezoneBarscheme. - Press Run.
The app launches as an accessory app, so it appears in the menu bar instead of the Dock.
xcodebuild \
-project TimezoneBar.xcodeproj \
-scheme TimezoneBar \
-configuration Debug \
-derivedDataPath ./.xcodebuild \
CODE_SIGNING_ALLOWED=NO \
buildxcodebuild \
-project TimezoneBar.xcodeproj \
-scheme TimezoneBar \
-configuration Release \
-derivedDataPath ./.xcodebuild \
CODE_SIGNING_ALLOWED=NO \
buildThe built app bundle will be located under:
.xcodebuild/Build/Products/<Configuration>/TimezoneBar.app
The project currently includes a preset bundle identifier and development team in the Xcode project. If you are building this outside the original environment, update Signing settings in Xcode before creating a distributable build.
For local compile-only verification, the command-line examples above disable code signing.
MIT