sdwdate support for GETINFO "current-time/{local,utc}"

At last it seems the Tor network supports natively time queries which makes it the ideal way to check time for sdwdate.

Advantages:

*Attack surface reduced to that of the Tor daemon
*No need to worry about miantining lists of active onions or the upcoming deprecation of v2 addresses.

Minor features (control port):

Introduce GETINFO “current-time/{local,utc}” to return the local and UTC times respectively in ISO format. This helps a controller like Tor Browser detect a time-related error. Closes ticket 25511 (Expose TZ info on control port for better debugging of time errors (#25511) · Issues · Legacy / Trac · GitLab). Patch by Neel Chauhan.

1 Like

https://phabricator.whonix.org/T832

1 Like

GETINFO “current-time/{local,utc}” is unusable. They’re using C function gettimeofday. They just query the local system’s clock.

GETINFO “current-time/{local,utc}” is not using any time provided by the Tor network. The ticket discussion sounds too simple for that as well.

Thanks for the heads up. Turns out it was much ado about nothing :confused: