Skip to content

Go7hic/TimezoneBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimezoneBar

TimezoneBar is a minimal macOS menu bar world clock built with Swift and AppKit.

Features

  • 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 Quit on the left and Settings on 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

Preset Clocks

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.

Requirements

  • macOS 13 or later
  • A recent Xcode version with Swift/AppKit support

Run In Xcode

  1. Open TimezoneBar.xcodeproj.
  2. Select the TimezoneBar scheme.
  3. Press Run.

The app launches as an accessory app, so it appears in the menu bar instead of the Dock.

Build From The Command Line

xcodebuild \
  -project TimezoneBar.xcodeproj \
  -scheme TimezoneBar \
  -configuration Debug \
  -derivedDataPath ./.xcodebuild \
  CODE_SIGNING_ALLOWED=NO \
  build

Release Build

xcodebuild \
  -project TimezoneBar.xcodeproj \
  -scheme TimezoneBar \
  -configuration Release \
  -derivedDataPath ./.xcodebuild \
  CODE_SIGNING_ALLOWED=NO \
  build

The built app bundle will be located under:

.xcodebuild/Build/Products/<Configuration>/TimezoneBar.app

Signing Notes

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.

License

MIT

About

World colock in your menu bar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages