From dcd350b1855605c52bdacf58a32885d8a53ef077 Mon Sep 17 00:00:00 2001
From: Robert Anderson <randerson@lbsd.net>
Date: Tue, 11 Aug 2009 11:05:43 +0000
Subject: [PATCH] Add ymd datetime string instead of just year and month

---
 smradius/modules/accounting/mod_accounting_sql.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/smradius/modules/accounting/mod_accounting_sql.pm b/smradius/modules/accounting/mod_accounting_sql.pm
index fe1c6c34..6469cf14 100644
--- a/smradius/modules/accounting/mod_accounting_sql.pm
+++ b/smradius/modules/accounting/mod_accounting_sql.pm
@@ -412,7 +412,7 @@ sub cleanup
 		# Set array items
 		@recordRow = (
 			$usageTotals->{'Username'},
-			$lastMonth->year."-".$lastMonth->month,
+			$lastMonth->ymd,
 			$usageTotals->{'AcctSessionTime'},
 			$usageTotals->{'AcctInputOctets'},
 			$usageTotals->{'AcctInputGigawords'},
-- 
GitLab