Commit 1afb7c3
committed
fix(Time): 修正 GetNow 方法以使用 CurrentTimeZone 进行时区转换
之前 GetNow 直接使用 DateTime.Now,这依赖于系统本地时区设置,可能导致跨时区环境下的时间不一致。现在改为从 UTC 时间根据 CurrentTimeZone 显式转换,确保时间计算基于统一配置的时区。1 parent 70dd446 commit 1afb7c3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
0 commit comments