Commit 2a005c5
committed
Fix failing date tests
Previously we used an unlikely timezone: GMT+08h08m22s. This was used to test that converted dates were the same as one another.
However, it seems that now, iOS ignores or rounds down the seconds when creating a timezone. That resulted in test failures where we compared the seconds to `0` – under iOS 26, the actual value was 22, equal to the number of seconds after the last whole minute in the timezone we used.
I’ve made it an exact number of minutes to fix the test.1 parent 601d49a commit 2a005c5
File tree
1 file changed
+3
-1
lines changed- Modules/Tests/YosemiteTests/Model/Extensions
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
0 commit comments