components: drivers: rtc: add the alarm using local time for calculation #10361
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
为什么提交这份PR (why to submit this PR)
rtc的alarm驱动不支持带时区(local time)的时间比较闹钟事件触发
你的解决方案是什么 (what is your solution)
在kconfig中加入使用本地时间的alarm的配置,RT_ALARM_USING_LOCAL_TIME,默认不使能,也就是默认还是UTC时区闹钟。
另外rt_alarm_dump命令加入支持timezone显示,这样比较直观些。