[ntp:questions] ntpq -crv gives results in local time, not UTC
David J Taylor
david-taylor at blueyonder.co.uk.invalid
Thu Apr 5 19:46:17 UTC 2012
"Dave Hart" <hart at ntp.org> wrote in message
news:CAMbSiYAkREBEBF3XkOhy+v4DyAvyNQNmeyMwHwhhu2ze1G1TmA at mail.gmail.com...
> On Thu, Apr 5, 2012 at 06:05, David J Taylor
> <david-taylor at blueyonder.co.uk.invalid> wrote:
>> It seems that, on Windows at least, ntpq -crv gives results in local
>> and not in UTC. Is that intended? Is there a switch for results in
> Yes, it's intentional. There is no built-in switch to use UTC but you
> can do it on most systems by setting/changing the TZ environment
> variable. On Windows:
> set TZ=GMT0 & ntpq -crv & set TZ=
> on Unix:
> env TZ=GMT0 ntpq -crv
> Of course, neither is necessary if your local timezone is UTC to begin
> with. I use UTC on my Windows systems because Windows misrepresents
> historical and future timestamps which are in the other half of the
> year, in DST terms.
> Dave Hart
Thanks, Dave. That's a pity, as I don't like the work-rounds.
I know what you mean about file timestamps being different, although I
wouldn't use the word "misrepresent".
More information about the questions