analytics-activity: Fix UTC timezone and adjust header type.

Fixes an error with how the `utctime` was being generated and makes
the header on the summary table the same type as the other tabs.
This commit is contained in:
Lauryn Menard 2022-12-02 14:38:22 +01:00 committed by Tim Abbott
parent c75e5c8ba6
commit c05c25e742
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ def realm_summary_table(realm_minutes: Dict[str, float]) -> str:
dict( dict(
rows=rows, rows=rows,
num_active_sites=num_active_sites, num_active_sites=num_active_sites,
utctime=now.strftime("%Y-%m-%d %H:%MZ"), utctime=now.strftime("%Y-%m-%d %H:%M %Z"),
billing_enabled=settings.BILLING_ENABLED, billing_enabled=settings.BILLING_ENABLED,
), ),
) )

View File

@ -1,4 +1,4 @@
<h2 style="text-align: center;">{{ num_active_sites }} active sites</h2> <h3 style="text-align: center;">{{ num_active_sites }} active sites</h3>
<p style="text-align: center;">{{ utctime }}</p> <p style="text-align: center;">{{ utctime }}</p>