Commit 9925b732 authored by Alessandro Rubini's avatar Alessandro Rubini

userspace: wr_date now adds "TAI" to its reports

I'm confused by TAI/UTC: let's wr_date make it clear that it is
reporting TAI.  Nobody parses this output so far: the web interface
uses it, but it prints back the whole output.

So this change is safe.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 29732203
......@@ -125,7 +125,8 @@ int wrdate_get(struct PPSG_WB *pps)
t = utc;
localtime_r(&t, &tm);
strftime(s, sizeof(s), "%Y-%m-%d %H:%M:%S", &tm);
printf("%lli.%09li\n%s.%09li\n", utc, nsec, s, nsec);
printf("%lli.%09li TAI\n"
"%s.%09li TAI\n", utc, nsec, s, nsec);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment