mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-25 07:36:27 +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"
|
client: "InfluxDBClientAsync"
|
||||||
query = (
|
query = (
|
||||||
'import "date"'
|
'import "date"'
|
||||||
|
'import "timezone"'
|
||||||
|
'option location = timezone.location(name: "Asia/Shanghai")'
|
||||||
'from(bucket: "{}")'
|
'from(bucket: "{}")'
|
||||||
"|> range(start: -180d)"
|
"|> range(start: -180d)"
|
||||||
'|> filter(fn: (r) => r["_measurement"] == "action_log")'
|
'|> filter(fn: (r) => r["_measurement"] == "action_log")'
|
||||||
|
Loading…
Reference in New Issue
Block a user