We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec61b4 commit 4e8bd00Copy full SHA for 4e8bd00
1 file changed
ide/shell_cmds/appendMonthlyUserCount.py
@@ -26,11 +26,11 @@ def append_month(client, month_str, write=False):
26
print(f"ERROR: invalid month format '{month_str}', expected YYYY-MM", file=sys.stderr)
27
sys.exit(1)
28
29
- start = datetime(year, month, 1, tzinfo=timezone.utc)
+ start = datetime(year, month, 1)
30
if month == 12:
31
- end = datetime(year + 1, 1, 1, tzinfo=timezone.utc)
+ end = datetime(year + 1, 1, 1)
32
else:
33
- end = datetime(year, month + 1, 1, tzinfo=timezone.utc)
+ end = datetime(year, month + 1, 1)
34
35
with client.context():
36
new_users = User.query(User.joinDate >= start, User.joinDate < end).count()
0 commit comments