mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-21 13:48:19 +00:00
🐛 Fix timezone not right in action log
This commit is contained in:
parent
87c22d56fb
commit
84ef241e16
@ -26,6 +26,8 @@ class ActionLogRepository(BaseService.Component):
|
||||
client: "InfluxDBClientAsync"
|
||||
query = (
|
||||
'import "date"'
|
||||
'import "timezone"'
|
||||
'option location = timezone.location(name: "Asia/Shanghai")'
|
||||
'from(bucket: "{}")'
|
||||
"|> range(start: -180d)"
|
||||
'|> filter(fn: (r) => r["_measurement"] == "action_log")'
|
||||
|
Loading…
Reference in New Issue
Block a user