[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ntpsec as server questions



On Dec 04, 2023, gene heskett wrote:
> [...]
> So here on coyote: date -u:
> Mon Dec  4 15:47:44 UTC 2023
> but on mkspi: date -u:
> Mon 04 Dec 2023 03:47:16 PM UTC
> [...]
> 
> WTH?  Where is that false 12 hour offset coming from?

Coyote seems to use the standard output of 'date' (in 24-hour clock
format).  

mkspi /appears/ to be using an approximation of "-R" ("--rfc-email",
as set in RFC5322), though it's missing the comma between "Mon" and "04
Dec", and is set in 12-hour mode.

It's been ages since I've dug into it, but I _BELIEVE_ the LC_TIME
environment variable has an effect here. (Or had, at some point in the
past).

-- 
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1  E067 6D65 70E5 4CE7 2860

Attachment: signature.asc
Description: PGP signature


Reply to: