On Mon, 5 Feb 2024 10:52:22 +0100, Gert Doering <g...@greenie.muc.de> wrote:

>Hi,
>
>On Mon, Feb 05, 2024 at 09:55:58AM +0100, Bo Berglund wrote:
>> I really wonder why it uses this terrible illogical display with the day name
>> first?
>> 
>> So how can I change it to use the ISO 8601 format?
>
>Well.  There's --machine-readable-output, I think,

This outputs a terrible string looking looking like the seconds since very long
ago with a very long decimal part too.

So in order to get an actual readable date I removed the setting
--machine-readable-output
too.
 
> and also
>
>  https://community.openvpn.net/openvpn/ticket/719
>
>which says that from 2.5.0 on, there should be POSIX timestamps.
>
>How old is your OpenVPN?

This is on the Ubuntu 20.04 LTS server:

Aug 21 2023:

$ openvpn --version
OpenVPN 2.4.12 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11]
[MH/PKTINFO] [AEAD] built on Aug 21 2023
library versions: OpenSSL 1.1.1f  31 Mar 2020, LZO 2.10


>
>Maybe it's a bit more convoluted ("depending on logging mode, format might
>be different"), but a good test would be to run 
>
>$ openvpn --show-gateway
>
>which should print something like
>
>2024-02-05 10:51:14 ROUTE_GATEWAY 193.149.48.190/255.255.255.192 IFACE=igb0 
>HWADDR=3c:ec:ef:9e:4a:a4
>2024-02-05 10:51:14 ROUTE6_GATEWAY 2001:608:4::1 IFACE=igb0
>
>... with a nice and shiny ISO timestamp.

Well not quite so:

$ openvpn --show-gateway
Mon Feb  5 12:15:15 2024 ROUTE_GATEWAY 192.168.119.1/255.255.255.0 IFACE=eth0
HWADDR=a4:ae:12:7f:4d:c3

It looks like a kind of locale thing, thinking that it is a US location, but it
uses the CET time zone notwithstanding:

$ date
Mon 05 Feb 2024 12:23:43 PM CET

It is the correct Swedish time when I hit enter, so it uses the US time format
but knows that it is in central Europe time-wise...



-- 
Bo Berglund
Developer in Sweden



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to