[users at bb.net] How can I find the server's current time via the api?

Pierre Tardy tardyp at gmail.com
Sat Jan 27 08:47:19 UTC 2018


Hi Caleb,
this API does not exist. The data api is giving timestamps in UTC timezone
to avoid all the timezone headackes.
But in order to synchronize master and another computer, I would recommend
to just synchronize them using NTP.
https://en.wikipedia.org/wiki/Network_Time_Protocol
It is usually rather easy to setup that.

Regards
Pierre


On Sat, Jan 27, 2018 at 12:03 AM Caleb Crome <caleb at signalessence.com>
wrote:

> Hi there,
>   I'm writing a little app that watches builders and builds.  I want
> to know how long it's been since the build started.  However, I can't
> find anywhere in the v2 api that tells what time the server thinks it
> is.  Of course, I can use my local computer's time to compare against,
> but if my local computer and the master's clock are set wrong, then
> the delta will be totally wrong.
>
> I'd prefer to get the 'started_at' and 'current_time' both from the
> master, rather than get 'started_at' from the master, and
> 'current_time' from my local computer.
>
> does that exist in the API?  I couldn't find it.
>
> Thanks,
>  -Caleb
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20180127/5158fedc/attachment.html>


More information about the users mailing list