tzprobe

command
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: BSD-3-Clause Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command tzprobe live-verifies that time.Local is the device's time zone on a real device (#944). Go's time package leaves it at UTC on iOS, so the mobile driver sets it at startup from the zone Foundation reports.

Two seconds after launch it prints one line to stdout and shows it in a label:

tzprobe local=Local now=05:12:03 PST jan=04:00 PST jul=05:00 PDT

now must read the hour the status bar shows. jan and jul are 12:00 UTC on 15 January and 15 July 2026 in the device zone: in a zone with daylight saving they differ by an hour, which a fixed offset cannot do. With -auto it exits after printing, so a scripted run leaves nothing running.

iOS: package with `bellui package -os ios` from this directory, install, then `xcrun devicectl device process launch --console <device> <app-id> -auto` and read the tzprobe line.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL