[pmg-devel] [PATCH pmg-api 2/2] statistics: use localized day span for spamscores
Dominik Csapak
d.csapak at proxmox.com
Mon Mar 27 16:53:55 CEST 2023
the total info we use is also the localized day span so we have to use
that here too. Alternatively, we could use the non localized one on
both.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/PMG/Statistic.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PMG/Statistic.pm b/src/PMG/Statistic.pm
index 99f96cf..024e550 100755
--- a/src/PMG/Statistic.pm
+++ b/src/PMG/Statistic.pm
@@ -428,7 +428,7 @@ sub total_mail_stat {
sub total_spam_stat {
my ($self, $rdb) = @_;
- my ($from, $to) = $self->timespan();
+ my ($from, $to) = $self->localdayspan();
my $sth = $rdb->{dbh}->prepare(
"SELECT spamlevel, COUNT(spamlevel) AS count FROM CStatistic"
--
2.30.2
More information about the pmg-devel
mailing list