feat: add safe growth report persistence and AvalAI client

This commit is contained in:
2026-08-21 00:14:26 +03:30
parent f3f51a97ef
commit 37416a6f20
7 changed files with 435 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package growthreport
import "time"
func NextTehranRefresh(now time.Time) time.Time {
location, err := time.LoadLocation("Asia/Tehran")
if err != nil { location = time.FixedZone("Asia/Tehran", 3*60*60+30*60) }
local := now.In(location)
return time.Date(local.Year(), local.Month(), local.Day()+1, 0, 0, 0, 0, location).UTC()
}