Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Chiny

#1
24.7, 24.10 Legacy Series / vnstat date format
September 04, 2024, 04:48:36 PM
I'd like the OPNsense GUI of vnstat to show dates in dd/mm/yy format, Locale "en_GB.UTF-8" would suit me nicely.   Unfortunately, my setup provides mm/dd/yy.

/usr/local/etc/vnstat.conf says:

Quote# locale (LC_ALL) ("-" = use system locale)
Locale "-"

The terminal output of    % locale   is:
QuoteLANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_ALL=

The terminal output of: vnstat -d
does provide dates in dd/mm/yy format, as expected.

So... it appears that OPNsense GUI has its own opinion of Locale but where is this stored ?

For good measure, I edit'd /usr/local/etc/vnstat.conf such that:

Quote# locale (LC_ALL) ("-" = use system locale)
Locale "en_GB.UTF-8"

... and the GUI output of vnstat changes to dd/mm/yy format.   Of course, that doesn't work for long, getting re-written with reboots, updates and so on.

What am I missing ?   How can I get the GUI display of vnstat to use dd/mm/yy ?
#2
23.1 Legacy Series / timezone for cron
April 17, 2023, 07:42:34 PM
Currently running OPNsense 23.1.5_4-amd64 with plugin os-speedtest-community 0.9_3

cron is scheduled to run speedtest once per day, at 20:05 in the OPNsense GUI.   Now that summertime has arrived and the timezone has moved from +0000 to +0100, cron runs an hour earlier at 19:05 according to the speedtest output.

OPNsense GUI Dashboard displays +0100 time correctly.   I've double checked tzsetup to check my timezone.   (Shell) date shows the +0100 time correctly.    Presumably cron allows for TZ ?   Or have I missed a config  :-[