[SOLVED] PMG statistics pages display and accept invalid date selection

keeka

Active Member
Dec 8, 2019
199
24
38
I noticed the date selector in the statistics section offers 31st September as a valid selection.
When selected, it seems to find data to display under the various stats sub-pages and that data differs from both 30th Sept and 1st Oct.
It seems like a bug to me. I am on Mail Gateway 7.1-7.
 
how did you select sep 31? (i couldn't here) also what date does it show in the graph below then?
 
In the dropdown, day numbers 1-31 are always available regardless of the month selected.
The generated starttime/endtime is however a valid date and the data displayed, correct for that date.
For example, selecting 29/02/22 generates a graph for 01/03/22 and 31/02/22 brings a graph for 03/03/22.
It just seems the UI is not updating the day list on changed month selection. I don't appear to have any JS errors in the browser (firefox 105).

EDIT: In my OP, the data shown when 31/09 is selected is in fact that for 01/10.

graph.png
 
Last edited:
Last edited:
@dcsapak

Code:
~# pmgversion -v
proxmox-mailgateway-container: 7.1-2 (API: 7.1-7/4d02e400, running kernel: 5.15.60-1-pve)
pmg-api: 7.1-7
pmg-gui: 3.1-4
clamav-daemon: 0.103.7+dfsg-0+deb11u1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx3
libarchive-perl: 3.4.0-1
libjs-extjs: 7.0.0-1
libjs-framework7: 4.4.7-1
libproxmox-acme-perl: 1.4.2
libproxmox-acme-plugins: 1.4.2
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.2-3
libpve-http-server-perl: 4.1-3
libxdgmime-perl: 1.0-1
lvm2: not correctly installed
pmg-docs: 7.1-2
pmg-i18n: 2.7-2
pmg-log-tracker: 2.3.1-1
postgresql-13: 13.8-0+deb11u1
proxmox-mini-journalreader: 1.3-1
proxmox-spamassassin: 3.4.6-4
proxmox-widget-toolkit: 3.5.1
pve-xtermjs: 4.16.0-1
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!