Skip to content

automation: accept timezone on rule update - #91

Merged
debidong merged 2 commits into
mainfrom
feat/automation-schedule-timezone
Oct 9, 2026
Merged

debidong merged 2 commits into
mainfrom
feat/automation-schedule-timezone

Conversation

@debidong

@debidong debidong commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

做了什么

更新自动化规则的 SDK 请求补上 timezone。不传这个字段时,原来的时区保持不动,包括老数据里的空串。显式传空字符串会把时区写成 UTC,不会改回账号默认时区。

OpenAPI 里这个字段本来就有,这次只让手写的 AutomationRuleUpdateRequest 能把它发出去。

怎么验证

go test -count=1 -run TestAutomationRuleUpdateRequestTimezone .

@debidong
debidong merged commit 3de231e into main Oct 9, 2026
4 checks passed
@debidong
debidong deleted the feat/automation-schedule-timezone branch October 9, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant