Fix date format. (#7423)

This commit is contained in:
Nicolo Maio 2023-04-26 14:13:40 +00:00
parent a89557d393
commit f530048a7d
4 changed files with 8 additions and 14 deletions

View file

@ -92,9 +92,12 @@ function backup_config.list_backup(user)
local saved_backups_keys = ntop.getHashKeysCache(backup_hash_key) or {}
local epoch_list = {}
local date_format = ntop.getPref("ntopng.user."..user..".date_format")
for epoch, _ in pairs(saved_backups_keys) do
epoch_list[#epoch_list + 1] = {
epoch = epoch
epoch = epoch,
date_format = date_format
}
end