core icon indicating copy to clipboard operation
core copied to clipboard

Date/Time display locale format selector

Open NOYB opened this issue 11 months ago • 0 comments

Date/Time display locale format selector

Remains unchanged as log raw (ISO 8601: YYYY-MM-DDThh:mm:ss+/-hh:mm) unless a different display format is selected.

A major purpose of a GUI is human ease of use. Date/Time strings in ISO 8601 format are great for data transfer between systems. Though not humanly convenient. This patch makes possible to optionally select a humanly convenient date/time log display format based on the client locale or the OPNsense web GUI language. ex: Mar 25 13:15:45

The logged ISO 8601 date/time string is not altered by this patch.

Display Formats:

SYSTEM: SETTINGS: LOGGING

  • Web GUI Language (MMM DD hh:mm:ss)
  • Client Locale (MMM DD hh:mm:ss)
  • Log Raw (YYYY-MM-DDThh:mm:ss+/-hh:mm)
  • Log Long (YYYY-MM-DD hh:mm:ss+/-hh)
  • Log Long w/o TZ (YYYY-MM-DD hh:mm:ss)
  • Log Short (MM-DD hh:mm:ss)

SYSTEM: LOG FILES: BOOT (does not include TZ)

  • Log Raw (YYYY-MM-DDThh:mm:ss)
  • Log Long (YYYY-MM-DD hh:mm:ss)

FIREWALL: SETTINGS: ADVANCED -> Logging

  • Web GUI Language (MMM DD hh:mm:ss)
  • Client Locale (MMM DD hh:mm:ss)
  • Log Raw (YYYY-MM-DDThh:mm:ss+/-hh:mm)
  • Log Long (YYYY-MM-DD hh:mm:ss+/-hh)
  • Log Long w/o TZ (YYYY-MM-DD hh:mm:ss)
  • Log Short (MM-DD hh:mm:ss)

FIREWALL: ALIASES -> Last Updated (does not include TZ)

  • Log Raw (YYYY-MM-DDThh:mm:ss.nnnnnn)
  • Log Long (YYYY-MM-DD hh:mm:ss)

Firewall Log Widget System Log Widget

  • Web GUI Language (MMM DD hh:mm)
  • Client Locale (MMM DD hh:mm)
  • Log Raw (YYYY-MM-DDThh:mm:ss+/-hh:mm)
  • Log Long (YYYY-MM-DD hh:mm:ss+/-hh)
  • Log Long w/o TZ (YYYY-MM-DD hh:mm:ss)
  • Log Short (MM-DD hh:mm)

NOYB avatar Mar 25 '24 08:03 NOYB